fix indent (#20071)

pull/20116/head
TaoBeier 8 years ago committed by Toshio Kuratomi
parent 1786c81a65
commit 6ec0369c26

@ -129,7 +129,7 @@ if __name__ == '__main__':
log_only = False log_only = False
else: else:
display.display("to see the full traceback, use -vvv") display.display("to see the full traceback, use -vvv")
log_only = True log_only = True
display.display(u"the full traceback was:\n\n%s" % to_text(traceback.format_exc()), log_only=log_only) display.display(u"the full traceback was:\n\n%s" % to_text(traceback.format_exc()), log_only=log_only)
exit_code = 250 exit_code = 250
finally: finally:

@ -444,7 +444,7 @@ class AnsibleDockerClient(Client):
tls_config = TLSConfig(**kwargs) tls_config = TLSConfig(**kwargs)
return tls_config return tls_config
except TLSParameterError as exc: except TLSParameterError as exc:
self.fail("TLS config error: %s" % exc) self.fail("TLS config error: %s" % exc)
def _get_connect_params(self): def _get_connect_params(self):
auth = self.auth_params auth = self.auth_params

@ -47,7 +47,7 @@ def main():
variable_manager.set_inventory(inventory) variable_manager.set_inventory(inventory)
# create play with tasks # create play with tasks
play_source = dict( play_source = dict(
name = "Ansible Play", name = "Ansible Play",
hosts = host_list, hosts = host_list,
gather_facts = 'no', gather_facts = 'no',

@ -83,7 +83,7 @@ class Group:
raise Exception("can't add group to itself") raise Exception("can't add group to itself")
# don't add if it's already there # don't add if it's already there
if not group in self.child_groups: if group not in self.child_groups:
self.child_groups.append(group) self.child_groups.append(group)
# update the depth of the child # update the depth of the child
@ -94,7 +94,7 @@ class Group:
# now add self to child's parent_groups list, but only if there # now add self to child's parent_groups list, but only if there
# isn't already a group with the same name # isn't already a group with the same name
if not self.name in [g.name for g in group.parent_groups]: if self.name not in [g.name for g in group.parent_groups]:
group.parent_groups.append(self) group.parent_groups.append(self)
self.clear_hosts_cache() self.clear_hosts_cache()

Loading…
Cancel
Save