Skip to content

Commit

Permalink
Merge pull request #137 from seqeralabs/fix-workspace-deletion
Browse files Browse the repository at this point in the history
fix: generate json data for workspaces with org argument for deletion
  • Loading branch information
ejseqera authored Apr 26, 2024
2 parents 8eb8e85 + f94e576 commit b402529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seqerakit/overwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _get_json_data(self, block, args, keys_to_get):
self.cached_jsondata = json_method(
block, "list", "-w", sp_args["workspace"]
)
elif block == "members": # TODO
elif block == "members" or block == "workspaces": # TODO
sp_args = self._get_values_from_cmd_args(args, keys_to_get)
self.cached_jsondata = json_method(
block, "list", "-o", sp_args["organization"]
Expand Down
2 changes: 1 addition & 1 deletion seqerakit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def check_if_exists(json_data, namekey, namevalue):
"""
if not json_data:
return False
logging.info(f"Checking if {namekey} {namevalue} exists in Seqera Platform...")
logging.info(f" Checking if {namekey} {namevalue} exists in Seqera Platform...")
# Regex pattern to match environment variables in the string
env_var_pattern = re.compile(r"\$\{?[\w]+\}?")

Expand Down

0 comments on commit b402529

Please sign in to comment.