Skip to content

Commit fcdd289

Browse files
committed
fix bug with container add
and expose keep_path to add Signed-off-by: vsoch <[email protected]>
1 parent 66f5595 commit fcdd289

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: shpc/main/container/singularity.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ def add(
9898
):
9999
return
100100

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

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

0 commit comments

Comments
 (0)