Skip to content

Commit

Permalink
Fix getting provisioning object
Browse files Browse the repository at this point in the history
Signed-off-by: Jilju Joy <[email protected]>
  • Loading branch information
jilju committed Jun 24, 2024
1 parent 6f799f6 commit a0b68d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocs_ci/deployment/hosted_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit a0b68d2

Please sign in to comment.