Skip to content

Commit

Permalink
Put duplicate plugin location in error message (#15781)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Jan 29, 2025
1 parent d639953 commit c418bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awx/main/models/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,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
Expand Down

0 comments on commit c418bc0

Please sign in to comment.