This commit is contained in:
sean-m-sullivan
2020-10-19 12:12:08 -05:00
parent 7ca2f33112
commit 862cd974ff
2 changed files with 3 additions and 3 deletions

View File

@@ -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]))