fix indents

This commit is contained in:
Michael DeHaan 2012-08-11 12:20:16 -04:00
parent c9a5ce3685
commit 72faf8eb0a
3 changed files with 5 additions and 4 deletions

View file

@ -397,7 +397,8 @@ class PlaybookCallbacks(object):
while True: while True:
result = prompt(msg, private) result = prompt(msg, private)
second = prompt("confirm " + msg, private) second = prompt("confirm " + msg, private)
if result == second: break if result == second:
break
print "***** VALUES ENTERED DO NOT MATCH ****" print "***** VALUES ENTERED DO NOT MATCH ****"
else: else:
result = prompt(msg, private) result = prompt(msg, private)

View file

@ -121,7 +121,7 @@ class Inventory(object):
# exclude hosts mentioned in any restriction (ex: failed hosts) # exclude hosts mentioned in any restriction (ex: failed hosts)
if self._restriction is not None: if self._restriction is not None:
hosts = [ h for h in hosts if h.name in self._restriction ] hosts = [ h for h in hosts if h.name in self._restriction ]
return hosts return hosts

View file

@ -46,8 +46,8 @@ class Play(object):
''' constructor loads from a play datastructure ''' ''' constructor loads from a play datastructure '''
for x in ds.keys(): for x in ds.keys():
if not x in Play.VALID_KEYS: if not x in Play.VALID_KEYS:
raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x) raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x)
# TODO: more error handling # TODO: more error handling