mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
aci_rest: Ensure we always return a status
This commit is contained in:
parent
05374da9b8
commit
9e2a59885e
1 changed files with 1 additions and 0 deletions
|
@ -352,6 +352,7 @@ def main():
|
||||||
module.fail_json(msg='Failed to find REST API payload type (neither .xml nor .json).')
|
module.fail_json(msg='Failed to find REST API payload type (neither .xml nor .json).')
|
||||||
|
|
||||||
aci = ACIRESTModule(module)
|
aci = ACIRESTModule(module)
|
||||||
|
aci.result['status'] = -1 # Ensure we always return a status
|
||||||
|
|
||||||
# We include the payload as it may be templated
|
# We include the payload as it may be templated
|
||||||
payload = content
|
payload = content
|
||||||
|
|
Loading…
Reference in a new issue