From a0b68d2cd104d96534955c3c3aa05ea5dc5449c2 Mon Sep 17 00:00:00 2001 From: Jilju Joy Date: Mon, 24 Jun 2024 16:12:40 +0530 Subject: [PATCH] Fix getting provisioning object Signed-off-by: Jilju Joy --- ocs_ci/deployment/hosted_cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ocs_ci/deployment/hosted_cluster.py b/ocs_ci/deployment/hosted_cluster.py index 7a845617b022..ebceeb5f2c2c 100644 --- a/ocs_ci/deployment/hosted_cluster.py +++ b/ocs_ci/deployment/hosted_cluster.py @@ -25,6 +25,7 @@ from ocs_ci.ocs.ocp import OCP from ocs_ci.ocs.resources.catalog_source import CatalogSource from ocs_ci.ocs.resources.csv import check_all_csvs_are_succeeded +from ocs_ci.ocs.resources.ocs import OCS from ocs_ci.ocs.resources.pod import ( wait_for_pods_to_be_in_statuses_concurrently, ) @@ -430,7 +431,7 @@ def deploy_dependencies( # Enable central infrastructure management service for agent if config.DEPLOYMENT.get("hosted_cluster_platform") == "agent": - provisioning_obj = OCP( + provisioning_obj = OCS( **OCP(kind=constants.PROVISIONING).get().get("items")[0] ) if not provisioning_obj.data["spec"].get("watchAllNamespaces") == "true":