mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
linting
This commit is contained in:
parent
7ca2f33112
commit
862cd974ff
@ -366,7 +366,7 @@ class TowerAPIModule(TowerModule):
|
||||
if auto_exit:
|
||||
self.exit_json(**self.json_output)
|
||||
else:
|
||||
return self.json_output #########
|
||||
return self.json_output
|
||||
else:
|
||||
if 'json' in response and '__all__' in response['json']:
|
||||
self.fail_json(msg="Unable to delete {0} {1}: {2}".format(item_type, item_name, response['json']['__all__'][0]))
|
||||
|
||||
@ -325,8 +325,8 @@ def main():
|
||||
endpoint=approval_endpoint, item_type='workflow_job_template_approval_node',
|
||||
associations=association_fields
|
||||
)
|
||||
|
||||
|
||||
module.exit_json(**module.json_output)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user