aci_rest: Ensure we always return a status

This commit is contained in:
Dag Wieers
2018-05-24 15:20:23 +02:00
committed by GitHub
parent 05374da9b8
commit 9e2a59885e

View File

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