Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Osypenko <[email protected]>
  • Loading branch information
DanielOsypenko committed Jan 6, 2025
1 parent 624bbd1 commit afbfabf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ocs_ci/ocs/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ def __init__(self):
self.ocp_obj = OCP(namespace=self.namespace)
self.bucket_name = None
self.warp_cr = templating.load_yaml(constants.WARP_OBJ_YAML)
self.host = self.warp_cr["host"]
# avoid failing DNS server to resolve hostname, when running on cluster with custom storage namespace
if config.ENV_DATA["cluster_namespace"] not in self.host:
self.host = f"s3.{config.ENV_DATA['cluster_namespace']}.svc"
self.host = f"s3.{config.ENV_DATA['cluster_namespace']}.svc"
self.duration = self.warp_cr["duration"]
self.concurrent = self.warp_cr["concurrent"]
self.obj_size = self.warp_cr["obj.size"]
Expand Down

0 comments on commit afbfabf

Please sign in to comment.