aci_rest: Ensure we always return a status

pull/43635/head
Dag Wieers 7 years ago committed by GitHub
parent 05374da9b8
commit 9e2a59885e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -352,6 +352,7 @@ def main():
module.fail_json(msg='Failed to find REST API payload type (neither .xml nor .json).')
aci = ACIRESTModule(module)
aci.result['status'] = -1 # Ensure we always return a status
# We include the payload as it may be templated
payload = content

Loading…
Cancel
Save