diff --git a/awx_collection/plugins/modules/tower_credential.py b/awx_collection/plugins/modules/tower_credential.py index f43d7f5ab3..a87d76fecb 100644 --- a/awx_collection/plugins/modules/tower_credential.py +++ b/awx_collection/plugins/modules/tower_credential.py @@ -255,7 +255,7 @@ OLD_INPUT_NAMES = ( def credential_type_for_kind(params): credential_type_res = tower_cli.get_resource('credential_type') - kind = params.pop('kind') + kind = params.get('kind') arguments = {'managed_by_tower': True} if kind == 'ssh': if params.get('vault_password'):