mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
aci_rest: Ensure we always return a status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user