Skip to content

Commit

Permalink
linter updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoubl3j committed Dec 19, 2024
1 parent 939d0fa commit d62e683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions awx/main/models/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ def inject_credential(self, credential, env, safe_env, args, private_data_dir):

inject_credential(self, credential, env, safe_env, args, private_data_dir)


class CredentialTypeHelper:
@classmethod
def get_creation_params(cls, cred_type):
Expand All @@ -569,12 +570,14 @@ def get_creation_params(cls, cred_type):
inputs=cred_type.inputs,
injectors=cred_type.injectors,
)

@classmethod
def create(cls, cred_type):
res = CredentialType(**CredentialTypeHelper.get_creation_params(cred_type))
res.custom_injectors = cred_type.custom_injectors
return res


class ManagedCredentialType(SimpleNamespace):
registry = {}

Expand Down

0 comments on commit d62e683

Please sign in to comment.