Pep8 fixes for web_infra/ansible_tower (#24479)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-05-11 21:56:36 +05:30 committed by Matt Martz
commit 728d3e6c84
16 changed files with 238 additions and 253 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/python
#coding: utf-8 -*-
# coding: utf-8 -*-
# (c) 2017, Wayne Witzel III <wayne@riotousliving.com>
#
@ -113,16 +113,16 @@ except ImportError:
def main():
module = AnsibleModule(
argument_spec = dict(
name = dict(required=True),
description = dict(),
organization = dict(required=True),
tower_host = dict(),
tower_username = dict(),
tower_password = dict(no_log=True),
tower_verify_ssl = dict(type='bool', default=True),
tower_config_file = dict(type='path'),
state = dict(choices=['present', 'absent'], default='present'),
argument_spec=dict(
name=dict(required=True),
description=dict(),
organization=dict(required=True),
tower_host=dict(),
tower_username=dict(),
tower_password=dict(no_log=True),
tower_verify_ssl=dict(type='bool', default=True),
tower_config_file=dict(type='path'),
state=dict(choices=['present', 'absent'], default='present'),
),
supports_check_mode=True
)
@ -148,7 +148,7 @@ def main():
if state == 'present':
result = team.modify(name=name, organization=org['id'],
description=description, create_on_missing=True)
description=description, create_on_missing=True)
json_output['id'] = result['id']
elif state == 'absent':
result = team.delete(name=name, organization=org['id'])