mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -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', {})
|
setattr(cred_plugin, 'injectors', {})
|
||||||
if ns in ManagedCredentialType.registry:
|
if ns in ManagedCredentialType.registry:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'a ManagedCredentialType with namespace={} is already defined in {}'.format(
|
'a ManagedCredentialType with namespace={} was defined in {}, but also defined in {}'.format(
|
||||||
ns, inspect.getsourcefile(ManagedCredentialType.registry[ns].__class__)
|
ns, ep.value, inspect.getsourcefile(ManagedCredentialType.registry[ns].__class__)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
ManagedCredentialType.registry[ns] = cred_plugin
|
ManagedCredentialType.registry[ns] = cred_plugin
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user