From 81f27bb103dddd1f85c75194ff1b1045ae5325be Mon Sep 17 00:00:00 2001 From: Petr Balogh Date: Tue, 5 Nov 2024 17:13:07 +0100 Subject: [PATCH] Fix multicluster_mode KeyError Fixes: #10803 Signed-off-by: Petr Balogh --- ocs_ci/ocs/resources/storage_cluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocs_ci/ocs/resources/storage_cluster.py b/ocs_ci/ocs/resources/storage_cluster.py index d9d94768887..fe66ee8b216 100644 --- a/ocs_ci/ocs/resources/storage_cluster.py +++ b/ocs_ci/ocs/resources/storage_cluster.py @@ -796,9 +796,9 @@ def ocs_install_verification( verify_device_class_in_osd_tree(ct_pod, device_class) # RDR with globalnet submariner - if config.MULTICLUSTER[ + if config.MULTICLUSTER.get( "multicluster_mode" - ] == "regional-dr" and get_primary_cluster_config().ENV_DATA.get( + ) == "regional-dr" and get_primary_cluster_config().ENV_DATA.get( "enable_globalnet", True ): validate_serviceexport()