From 9e2a59885ea574c8a64385bc3fb186b28081ca76 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 24 May 2018 15:20:23 +0200 Subject: [PATCH] aci_rest: Ensure we always return a status --- lib/ansible/modules/network/aci/aci_rest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/network/aci/aci_rest.py b/lib/ansible/modules/network/aci/aci_rest.py index 9cbbcccac2..44fb9f2b18 100644 --- a/lib/ansible/modules/network/aci/aci_rest.py +++ b/lib/ansible/modules/network/aci/aci_rest.py @@ -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