mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Update win_network.py
Typo (tab) fixed.
This commit is contained in:
parent
b95c4ca091
commit
0310400c13
@ -175,9 +175,9 @@ def _changes(cur, dns_proto, dns_servers, ip_proto, ip_addrs, gateway):
|
||||
else 'dhcp'
|
||||
)
|
||||
if cur_dns_proto == 'static':
|
||||
cur_dns_servers = cur['Statically Configured DNS Servers']
|
||||
if set(dns_servers or ['None']) != set(cur_dns_servers):
|
||||
changes['dns_servers'] = dns_servers
|
||||
cur_dns_servers = cur['Statically Configured DNS Servers']
|
||||
if set(dns_servers or ['None']) != set(cur_dns_servers):
|
||||
changes['dns_servers'] = dns_servers
|
||||
elif 'DNS servers configured through DHCP' in cur:
|
||||
cur_dns_servers = cur['DNS servers configured through DHCP']
|
||||
cur_ip_proto = 'static' if cur['DHCP enabled'] == 'No' else 'dhcp'
|
||||
|
Loading…
Reference in New Issue
Block a user