diff --git a/lib/ansible/modules/network/aci/aci_rest.py b/lib/ansible/modules/network/aci/aci_rest.py index 1eb651233d7..a06e9e41d61 100644 --- a/lib/ansible/modules/network/aci/aci_rest.py +++ b/lib/ansible/modules/network/aci/aci_rest.py @@ -192,7 +192,8 @@ def aci_response(result, rawoutput, rest_type='xml'): if rest_type == 'json': aci_response_json(result, rawoutput) - aci_response_xml(result, rawoutput) + else: + aci_response_xml(result, rawoutput) def main():