more whitespace

This commit is contained in:
Thomas S Hatch 2013-08-10 23:26:48 -06:00
parent 9d5e167f99
commit 7f1c120666
4 changed files with 8 additions and 8 deletions

View File

@ -74,7 +74,7 @@ def delete_host(zone, name, nameserver='127.0.0.1'):
res = delete(zone, name, nameserver=nameserver)
fqdn = fqdn + '.'
fqdn = fqdn + '.'
for ip in ips:
zone = 'in-addr.arpa.'
parts = ip.split('.')

View File

@ -49,7 +49,7 @@ def add_dns(ip, interface='Local Area Connection', index=1):
'''
Add the dns server to the nertwork interface
(index starts from 1)
Note: if the interface dns is configured by DHCP all the dns servers will
be removed from the interface and the requested dns will be the only one
@ -80,7 +80,7 @@ def add_dns(ip, interface='Local Area Connection', index=1):
def dns_dhcp(interface='Local Area Connection'):
'''
Configure the interface to get it's DNS servers from the DHCP server
CLI Example::
salt '*' win_dns_client.dns_dhcp <interface>

View File

@ -60,7 +60,7 @@ def exists(path):
'''
Check if the directory is configured in the SYSTEM path
Case-insensitive and ignores trailing backslash
CLI Example::
salt '*' win_path.exists 'c:\\python27'
@ -75,11 +75,11 @@ def exists(path):
def add(path, index=0):
'''
Add the directory to the SYSTEM path in the index location
CLI Example::
# Will add to the beginning of the path
salt '*' win_path.add 'c:\\python27' 0
# Will add to the end of the path
salt '*' win_path.add 'c:\\python27' index='-1'
'''

View File

@ -244,11 +244,11 @@ class Pillar(object):
'''
sorted_top = collections.defaultdict(OrderedDict)
for env, targets in top.items():
sorted_targets = sorted(targets.keys(),
sorted_targets = sorted(targets.keys(),
key=lambda target: orders[env][target])
for target in sorted_targets:
sorted_top[env][target] = targets[target]
return sorted_top
return sorted_top
def get_top(self):
'''