Skip to content

Commit

Permalink
Merge pull request #634 from DarrinFong/docker_used_during_sing_exec_…
Browse files Browse the repository at this point in the history
…#629

Docker used during sing exec
  • Loading branch information
glatard committed Aug 20, 2020
2 parents 94b80ba + f794c9e commit 733c1af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/python/boutiques/localExec.py
Expand Up @@ -592,9 +592,8 @@ def _isCommandInstalled(self, command):
# descriptor, executor options and if Docker is installed.
def _chooseContainerTypeToUse(self, conType, forceSing=False,
forceDocker=False):
if (self._isCommandInstalled('docker') and
(conType == 'docker' and not forceSing or
forceDocker)):
if ((conType == 'docker' and not forceSing or forceDocker) and
self._isCommandInstalled('docker')):
return "docker"

if self._isCommandInstalled('singularity'):
Expand Down

0 comments on commit 733c1af

Please sign in to comment.