From 2a38753385352871316457bf8288fe9f29e226e9 Mon Sep 17 00:00:00 2001 From: thedoubl3j Date: Mon, 16 Dec 2024 14:21:37 -0500 Subject: [PATCH] remove former discovery method --- awx/main/models/credential.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/awx/main/models/credential.py b/awx/main/models/credential.py index b36b1e9d9820..90ed0b1b4e32 100644 --- a/awx/main/models/credential.py +++ b/awx/main/models/credential.py @@ -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,