Skip to content

Commit

Permalink
For debugging purposes
Browse files Browse the repository at this point in the history
Signed-off-by: Sagi Hirshfeld <[email protected]>
  • Loading branch information
sagihirshfeld committed Jan 21, 2024
1 parent 8e21649 commit 9bb7023
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ocs_ci/ocs/resources/cloud_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def __init__(
self.client = boto3.resource(
"s3",
verify=verify,
endpoint_url=self.endpoint,
aws_access_key_id=self.access_key,
aws_secret_access_key=self.secret_key,
region_name=constants.AWS_REGION,
)
self.secret = self.create_s3_secret(self.secret_prefix, self.data_prefix)

Expand Down Expand Up @@ -296,9 +296,13 @@ def verify_uls_exists(self, uls_name):
self.client.meta.client.head_bucket(Bucket=uls_name)
logger.info(f"{uls_name} exists")
return True
except ClientError:
except ClientError as e:
logger.error(f"ClientError: {e}")
logger.info(f"{uls_name} does not exist")
return False
except Exception as e:
logger.error(f"Unexpected exception {e}")
raise e

def toggle_aws_bucket_readwrite(self, aws_bucket_name, block=True):
"""
Expand Down

0 comments on commit 9bb7023

Please sign in to comment.