Update win_network.py

Typo (tab) fixed.
This commit is contained in:
Malte Brodersen 2015-07-01 16:46:18 +02:00
parent b95c4ca091
commit 0310400c13

View File

@ -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'