Skip to content

Commit

Permalink
Leverage cached interfaces, if any.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Maryniuk committed Jan 29, 2019
1 parent dc6666c commit 36977cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/grains/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2187,8 +2187,8 @@ def fqdns():
grains = {}
fqdns = set()

addresses = salt.utils.network.ip_addrs(include_loopback=False)
addresses.extend(salt.utils.network.ip_addrs6(include_loopback=False))
addresses = salt.utils.network.ip_addrs(include_loopback=False, interface_data=_get_interfaces())
addresses.extend(salt.utils.network.ip_addrs6(include_loopback=False, interface_data=_get_interfaces()))
err_message = 'Exception during resolving address: %s'
for ip in addresses:
try:
Expand Down

0 comments on commit 36977cf

Please sign in to comment.