From 526f440b7ef0e5faa68881abbf6c20eb7d438d49 Mon Sep 17 00:00:00 2001 From: Johnathan Kupferer Date: Fri, 16 Aug 2024 15:06:43 -0400 Subject: [PATCH] Fix call to get resourceprovider if not cached --- operator/resourceprovider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/resourceprovider.py b/operator/resourceprovider.py index 26f6397..502868f 100644 --- a/operator/resourceprovider.py +++ b/operator/resourceprovider.py @@ -149,7 +149,7 @@ async def get(cls, name: str) -> ResourceProviderT: resource_provider = cls.instances.get(name) if resource_provider: return resource_provider - definition = await Poolboy.custom_objects_api.get_cluster_custom_object( + definition = await Poolboy.custom_objects_api.get_namespaced_custom_object( group = Poolboy.operator_domain, name = name, namespace = Poolboy.namespace,