Skip to content

Commit

Permalink
avoid circular import for craft_s3_command
Browse files Browse the repository at this point in the history
Signed-off-by: vavuthu <[email protected]>
  • Loading branch information
vavuthu committed Jan 6, 2025
1 parent e865d5e commit dae3d8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocs_ci/ocs/resources/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import base64
from semantic_version import Version

from ocs_ci.ocs.bucket_utils import craft_s3_command
from ocs_ci.ocs.ocp import get_images, OCP, verify_images_upgraded
from ocs_ci.helpers import helpers
from ocs_ci.helpers.proxy import update_container_with_proxy_env
Expand Down Expand Up @@ -212,6 +211,9 @@ def exec_s3_cmd_on_pod(self, command, mcg_obj=None):
Returns:
Munch Obj: This object represents a returned yaml file
"""
# Importing here to avoid circular dependency
from ocs_ci.ocs.bucket_utils import craft_s3_command

return self.exec_cmd_on_pod(
craft_s3_command(command, mcg_obj),
out_yaml_format=False,
Expand Down

0 comments on commit dae3d8d

Please sign in to comment.