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 34ef96f commit 6f799f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocs_ci/deployment/hosted_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ def deploy_dependencies(

# Enable central infrastructure management service for agent
if config.DEPLOYMENT.get("hosted_cluster_platform") == "agent":
provisioning_obj = OCP(**OCP(kind=constants.PROVISIONING).get("items")[0])
provisioning_obj = OCP(
**OCP(kind=constants.PROVISIONING).get().get("items")[0]
)
if not provisioning_obj.data["spec"].get("watchAllNamespaces") == "true":
provisioning_obj.patch(
resource_name=provisioning_obj.resource_name,
Expand Down

0 comments on commit 6f799f6

Please sign in to comment.