Skip to content

Commit

Permalink
vdk-control-cli: add vdk secrets command (#2357)
Browse files Browse the repository at this point in the history
review feedback.

Signed-off-by: Dako Dakov <[email protected]>
  • Loading branch information
dakodakov authored Jul 5, 2023
1 parent d5a489f commit 9c595ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def __list_properties(self, remote_props: Dict[str, Any]) -> None:

@staticmethod
def _to_bool(value: str) -> bool:
if value == "true" or value == "True":
if value.lower() == "true":
return True
if value == "false" or value == "False":
if value.lower() == "false":
return False
raise ValueError("bool cast accept only True/true/False/false values.")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def __list_secrets(self, remote_secrets: Dict[str, Any]) -> None:

@staticmethod
def _to_bool(value: str) -> bool:
if value == "true" or value == "True":
if value.lower() == "true":
return True
if value == "false" or value == "False":
if value.lower() == "false":
return False
raise ValueError("bool cast accept only True/true/False/false values.")

Expand Down

0 comments on commit 9c595ce

Please sign in to comment.