Skip to content

Commit

Permalink
dont require container for wrapper, name can be none
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsochat@stanford.edu>
  • Loading branch information
vsoch committed Aug 24, 2020
1 parent ab0533a commit 0603a90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snakemake/deployment/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DockerContainer:
"""

def __init__(self, name):
self.name = name.replace("docker://", "", 1)
self.name = name
self.uri = None
if self.exists():
self.uri = "docker://%s" % self.name
Expand Down Expand Up @@ -58,6 +58,8 @@ def exists(self):
if not self.name:
return

# If the user provides a docker uri, ensure we remove it first
self.name = self.name.replace("docker://", "", 1)
if "quay.io" in self.registry:
return self.exists_quay()
return self.exists_docker()
Expand Down

0 comments on commit 0603a90

Please sign in to comment.