Skip to content

Commit

Permalink
remove former discovery method
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoubl3j committed Dec 16, 2024
1 parent 9228756 commit 2a38753
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions awx/main/models/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,20 +688,6 @@ def build_extra_vars_file(vars, private_dir):
class ManagedCredentialType(SimpleNamespace):
registry = {}

def __init__(self, namespace, **kwargs):
for k in ('inputs', 'injectors'):
if k not in kwargs:
kwargs[k] = {}
kwargs.setdefault('custom_injectors', None)
super(ManagedCredentialType, self).__init__(namespace=namespace, **kwargs)
if namespace in ManagedCredentialType.registry:
raise ValueError(
'a ManagedCredentialType with namespace={} is already defined in {}'.format(
namespace, inspect.getsourcefile(ManagedCredentialType.registry[namespace].__class__)
)
)
ManagedCredentialType.registry[namespace] = self

def get_creation_params(self):
return dict(
namespace=self.namespace,
Expand Down

0 comments on commit 2a38753

Please sign in to comment.