From 8a6899608fcca4466394ac3cee1655873a9eae10 Mon Sep 17 00:00:00 2001 From: vavuthu Date: Thu, 6 Jun 2024 19:03:53 +0530 Subject: [PATCH] use get for resourceProfile timeout Signed-off-by: vavuthu --- ocs_ci/ocs/resources/storage_cluster.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ocs_ci/ocs/resources/storage_cluster.py b/ocs_ci/ocs/resources/storage_cluster.py index 47c10795a96..4fd452a9f10 100644 --- a/ocs_ci/ocs/resources/storage_cluster.py +++ b/ocs_ci/ocs/resources/storage_cluster.py @@ -923,10 +923,9 @@ def verify_storage_cluster(): log.info(f"Check if StorageCluster: {storage_cluster_name} is in Succeeded phase") if config.ENV_DATA.get("platform") == constants.FUSIONAAS_PLATFORM: timeout = 1000 - elif ( - storage_cluster.data["spec"]["resourceProfile"] - != storage_cluster.data["status"]["lastAppliedResourceProfile"] - ): + elif storage_cluster.data["spec"].get("resourceProfile") != storage_cluster.data[ + "status" + ].get("lastAppliedResourceProfile"): timeout = 1200 else: timeout = 600