From eb73d6898aa55860de9305aaa9558d2b978d606b Mon Sep 17 00:00:00 2001 From: Bryan Havenstein Date: Thu, 5 Dec 2024 14:19:02 -0700 Subject: [PATCH] AAP-36328 Remove DAB validation of service type --- ansible_base/resource_registry/registry.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ansible_base/resource_registry/registry.py b/ansible_base/resource_registry/registry.py index 816b03358..7d411b281 100644 --- a/ansible_base/resource_registry/registry.py +++ b/ansible_base/resource_registry/registry.py @@ -86,19 +86,10 @@ class ResourceRegistry: registry = {} def __init__(self, resource_list: List[ResourceConfig], service_api_config: ServiceAPIConfig = None): - self._validate_api_config(service_api_config) self.api_config = service_api_config for r in resource_list: self.registry[r.model_label] = r - def _validate_api_config(self, config): - """ - Needs to validate that: - - Viewsets have the correct serializer, pagination and filter classes - - Service type is set to one of awx, galaxy, eda or aap - """ - assert config.service_type in ["aap", "awx", "galaxy", "eda", "example"] - def get_resources(self): return self.registry