From 76b9fcc65b3b364e3b1aca215ed15e668aae2744 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 28 Jan 2025 11:28:07 -0500 Subject: [PATCH] Put duplicate plugin location in error message --- awx/main/models/credential.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/credential.py b/awx/main/models/credential.py index b9bacaae4c09..3cb6a888b430 100644 --- a/awx/main/models/credential.py +++ b/awx/main/models/credential.py @@ -653,8 +653,8 @@ def load_credentials(): setattr(cred_plugin, 'injectors', {}) if ns in ManagedCredentialType.registry: raise ValueError( - 'a ManagedCredentialType with namespace={} is already defined in {}'.format( - ns, inspect.getsourcefile(ManagedCredentialType.registry[ns].__class__) + 'a ManagedCredentialType with namespace={} was defined in {}, but also defined in {}'.format( + ns, ep.value, inspect.getsourcefile(ManagedCredentialType.registry[ns].__class__) ) ) ManagedCredentialType.registry[ns] = cred_plugin