Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
Signed-off-by: oviner <[email protected]>
  • Loading branch information
OdedViner committed Jul 24, 2024
1 parent 5971b48 commit 8c0d955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocs_ci/ocs/resources/ocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit 8c0d955

Please sign in to comment.