mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Put duplicate plugin location in error message (#15781)
This commit is contained in:
parent
d639953a4c
commit
c418bc034f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user