fix indents
This commit is contained in:
parent
c9a5ce3685
commit
72faf8eb0a
3 changed files with 5 additions and 4 deletions
|
@ -397,7 +397,8 @@ class PlaybookCallbacks(object):
|
|||
while True:
|
||||
result = prompt(msg, private)
|
||||
second = prompt("confirm " + msg, private)
|
||||
if result == second: break
|
||||
if result == second:
|
||||
break
|
||||
print "***** VALUES ENTERED DO NOT MATCH ****"
|
||||
else:
|
||||
result = prompt(msg, private)
|
||||
|
|
|
@ -121,7 +121,7 @@ class Inventory(object):
|
|||
|
||||
# exclude hosts mentioned in any restriction (ex: failed hosts)
|
||||
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
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ class Play(object):
|
|||
''' constructor loads from a play datastructure '''
|
||||
|
||||
for x in ds.keys():
|
||||
if not x in Play.VALID_KEYS:
|
||||
raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x)
|
||||
if not x in Play.VALID_KEYS:
|
||||
raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x)
|
||||
|
||||
# TODO: more error handling
|
||||
|
||||
|
|
Loading…
Reference in a new issue