Skip to content

Commit

Permalink
fix bug with container add
Browse files Browse the repository at this point in the history
and expose keep_path to add

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jul 1, 2023
1 parent 66f5595 commit fcdd289
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions shpc/main/container/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ def add(
):
return

# Destination for container in registry, either the container.yaml
# path or the container base, if a custom path is desired
if not self.settings.container_base and not keep_path:
dest_dir = os.path.dirname(container_yaml)
utils.mkdir_p(dest_dir)
# Destination for container in registry for container.yaml
dest_dir = os.path.dirname(container_yaml)
utils.mkdir_p(dest_dir)

# Add a docker (or local image) and return the config
if image.startswith("docker://"):
Expand Down

0 comments on commit fcdd289

Please sign in to comment.