Skip to content

Commit

Permalink
fix indent (ansible#20071)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao12345666333 authored and abadger committed Jan 11, 2017
1 parent 1786c81 commit 6ec0369
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/ansible
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if __name__ == '__main__':
log_only = False
else:
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)
exit_code = 250
finally:
Expand Down
2 changes: 1 addition & 1 deletion contrib/inventory/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def _get_tls_config(self, **kwargs):
tls_config = TLSConfig(**kwargs)
return tls_config
except TLSParameterError as exc:
self.fail("TLS config error: %s" % exc)
self.fail("TLS config error: %s" % exc)

def _get_connect_params(self):
auth = self.auth_params
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/uptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main():
variable_manager.set_inventory(inventory)

# create play with tasks
play_source = dict(
play_source = dict(
name = "Ansible Play",
hosts = host_list,
gather_facts = 'no',
Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/inventory/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def add_child_group(self, group):
raise Exception("can't add group to itself")

# 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)

# update the depth of the child
Expand All @@ -94,7 +94,7 @@ def add_child_group(self, group):

# now add self to child's parent_groups list, but only if there
# 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)

self.clear_hosts_cache()
Expand Down

0 comments on commit 6ec0369

Please sign in to comment.