Skip to content

Commit

Permalink
Fix: UnboundLocalError in vrg_namespace assignment (#10483)
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Agrawal <[email protected]>
  • Loading branch information
sidhant-agrawal authored Sep 13, 2024
1 parent 5a6db76 commit a13f533
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ocs_ci/helpers/dr_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,7 @@ def wait_for_replication_resources_creation(
"""
logger.info("Waiting for VRG to be created")
if discovered_apps:
vrg_namespace = constants.DR_OPS_NAMESAPCE

vrg_namespace = constants.DR_OPS_NAMESAPCE if discovered_apps else namespace
sample = TimeoutSampler(
timeout=timeout, sleep=5, func=check_vrg_existence, namespace=vrg_namespace
)
Expand Down

0 comments on commit a13f533

Please sign in to comment.