From 7c4aedf7164d085eabd63bd92eed4cf5cd00cc79 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 20 Mar 2023 13:36:24 -0600 Subject: [PATCH] exit from module --- awx_collection/plugins/modules/credential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/credential.py b/awx_collection/plugins/modules/credential.py index 75f3a69470..2f037f68dc 100644 --- a/awx_collection/plugins/modules/credential.py +++ b/awx_collection/plugins/modules/credential.py @@ -267,7 +267,7 @@ def main(): if state == 'exists' and credential is not None: # If credential exists and state is exists, we're done here. - module.create_if_needed(credential, credential, endpoint='credentials', item_type='credential') + module.exit_json(**module.json_output) # Attempt to look up the related items the user specified (these will fail the module if not found) if user: