Skip to content

Commit

Permalink
Merge pull request red-hat-storage#10193 from prsurve/fix_issue_10177
Browse files Browse the repository at this point in the history
Use Full Api path for Subscriptions
  • Loading branch information
vavuthu authored Jul 29, 2024
2 parents 0a62e63 + 604402a commit c2a46dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,9 @@ def wait_for_subscription(self, subscription_name, namespace=None):
if not namespace:
namespace = self.namespace

if self.muliclusterhub_running():
resource_kind = constants.SUBSCRIPTION_WITH_ACM
else:
resource_kind = constants.SUBSCRIPTION
ocp.OCP(kind=resource_kind, namespace=namespace)
ocp.OCP(kind=constants.SUBSCRIPTION_COREOS, namespace=namespace)
for sample in TimeoutSampler(
300, 10, ocp.OCP, kind=resource_kind, namespace=namespace
300, 10, ocp.OCP, kind=constants.SUBSCRIPTION_COREOS, namespace=namespace
):
subscriptions = sample.get().get("items", [])
for subscription in subscriptions:
Expand Down

0 comments on commit c2a46dd

Please sign in to comment.