mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
Add custom_injectors to test code path
* Unit tests do not create CredentialType records for Credential plugins. Instead, they explicitly instantiate CredentialType(s) for Credential plugins. They rely on CredentialType.defaults[key] to do so. This change makes sure custom_injectors get bolted onto the created CredentialType.
This commit is contained in:
committed by
Chris Meyers
parent
99c18b681d
commit
c82a8f4b9c
@@ -710,7 +710,9 @@ class ManagedCredentialType(SimpleNamespace):
|
||||
)
|
||||
|
||||
def create(self):
|
||||
return CredentialType(**self.get_creation_params())
|
||||
res = CredentialType(**self.get_creation_params())
|
||||
res.custom_injectors = self.custom_injectors
|
||||
return res
|
||||
|
||||
|
||||
class CredentialInputSource(PrimordialModel):
|
||||
|
||||
Reference in New Issue
Block a user