parent
67ce675c37
commit
f92f42d4bb
@ -1,43 +0,0 @@
|
|||||||
diff -ur a/salt/grains/core.py b/salt/grains/core.py
|
|
||||||
--- a/salt/grains/core.py 2017-05-15 13:04:13.484215822 -0600
|
|
||||||
+++ b/salt/grains/core.py 2017-05-15 13:08:08.626518175 -0600
|
|
||||||
@@ -1678,14 +1678,10 @@
|
|
||||||
|
|
||||||
ret = {}
|
|
||||||
ret['ipv4'] = salt.utils.network.ip_addrs(include_loopback=True)
|
|
||||||
- _fqdn = hostname()['fqdn']
|
|
||||||
- sockets = [(socket.AF_INET, '4')]
|
|
||||||
-
|
|
||||||
- if __opts__.get('ipv6', True):
|
|
||||||
- ret['ipv6'] = salt.utils.network.ip_addrs6(include_loopback=True)
|
|
||||||
- sockets.append((socket.AF_INET6, '6'))
|
|
||||||
+ ret['ipv6'] = salt.utils.network.ip_addrs6(include_loopback=True)
|
|
||||||
|
|
||||||
- for socket_type, ipv_num in sockets:
|
|
||||||
+ _fqdn = hostname()['fqdn']
|
|
||||||
+ for socket_type, ipv_num in ((socket.AF_INET, '4'), (socket.AF_INET6, '6')):
|
|
||||||
key = 'fqdn_ip' + ipv_num
|
|
||||||
if not ret['ipv' + ipv_num]:
|
|
||||||
ret[key] = []
|
|
||||||
@@ -1763,7 +1759,7 @@
|
|
||||||
# Provides:
|
|
||||||
# ip_interfaces
|
|
||||||
|
|
||||||
- if salt.utils.is_proxy() or not __opts__.get('ipv6', True):
|
|
||||||
+ if salt.utils.is_proxy():
|
|
||||||
return {}
|
|
||||||
|
|
||||||
ret = {}
|
|
||||||
@@ -1807,10 +1803,8 @@
|
|
||||||
return {}
|
|
||||||
|
|
||||||
resolv = salt.utils.dns.parse_resolv()
|
|
||||||
- keys = ['nameservers', 'ip4_nameservers', 'sortlist']
|
|
||||||
- if __opts__.get('ipv6', True):
|
|
||||||
- keys.append('ip6_nameservers')
|
|
||||||
- for key in keys:
|
|
||||||
+ for key in ('nameservers', 'ip4_nameservers', 'ip6_nameservers',
|
|
||||||
+ 'sortlist'):
|
|
||||||
if key in resolv:
|
|
||||||
resolv[key] = [str(i) for i in resolv[key]]
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
|||||||
SHA512 (SaltTesting-2016.10.26.tar.gz) = 0817d3738992bb1e89728a9cd939056bc919de9c995445aac8820f895204e0f14df4cff989c46456b382180e3a1685827a113dbb609518e88c6b944f9222698a
|
SHA512 (SaltTesting-2016.10.26.tar.gz) = 0817d3738992bb1e89728a9cd939056bc919de9c995445aac8820f895204e0f14df4cff989c46456b382180e3a1685827a113dbb609518e88c6b944f9222698a
|
||||||
SHA512 (salt-2016.11.5.tar.gz) = 9afb40dbd3a508eacc43500566660763e2b219817d7de25ccf2d61d7f74b857238922ea40cc4c6372fd520bc6f524d84fb0a2d65f9890bedd79d0fc6c177edf9
|
SHA512 (salt-2016.11.6.tar.gz) = 8b375eeaf8380c750700ae9b500e012f0b8ae281c8b5aa68d3443393a5bb7dd46612f2aeb3ba01719dd28d9e128dc88f1faa8023f5f5e7ff684a1f0483c30120
|
||||||
|
Loading…
Reference in new issue