From 8c0d955ad0a8f13db42d0de32c73bdeb84217aca Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 24 Jul 2024 17:21:41 +0300 Subject: [PATCH] fix code Signed-off-by: oviner --- ocs_ci/ocs/resources/ocs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ocs_ci/ocs/resources/ocs.py b/ocs_ci/ocs/resources/ocs.py index faaaf4ca177..d98b342595c 100644 --- a/ocs_ci/ocs/resources/ocs.py +++ b/ocs_ci/ocs/resources/ocs.py @@ -204,6 +204,9 @@ def get_version_info(namespace=None): dict: the ocs versions and DR operator versions """ + # Importing here to avoid circular dependency + from ocs_ci.ocs.utils import get_dr_operator_versions + operator_selector = get_selector_for_ocs_operator() subscription_plan_approval = config.DEPLOYMENT.get("subscription_plan_approval") package_manifest = PackageManifest( @@ -215,9 +218,6 @@ def get_version_info(namespace=None): csv_name = package_manifest.get_current_csv(channel) csv_pre = CSV(resource_name=csv_name, namespace=namespace) info = get_images(csv_pre.get()) - # Importing here to avoid circular dependency - from ocs_ci.ocs.utils import get_dr_operator_versions - dr_operator_versions = get_dr_operator_versions() versions = {**info, **dr_operator_versions} return versions