Route API Group (#27)

This commit is contained in:
Andrew Block
2020-09-08 10:56:19 -05:00
committed by GitHub
parent 541477e5f3
commit 80ae2e6b1e

View File

@@ -151,7 +151,7 @@ class InventoryModule(K8sInventoryModule):
self.get_routes_for_namespace(client, name, namespace)
def get_routes_for_namespace(self, client, name, namespace):
v1_route = client.resources.get(api_version='v1', kind='Route')
v1_route = client.resources.get(api_version='route.openshift.io/v1', kind='Route')
try:
obj = v1_route.get(namespace=namespace)
except DynamicApiError as exc: