Skip to content

Commit

Permalink
adding validations
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanker13 committed Dec 13, 2023
1 parent 326763e commit 34e593e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/python/kubeflow/storage_init_container/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ def is_valid_url(self, url):

def __post_init__(self):
# Custom checks or validations can be added here
if (
self.bucket_name is None
or self.endpoint_url is None
or self.file_key is None
):
raise ValueError("bucket_name or endpoint_url or file_key is None")
self.is_valid_url(self.endpoint_url)


Expand Down

0 comments on commit 34e593e

Please sign in to comment.