Skip to content

Commit

Permalink
updating run_args to default to None instead of empty string
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Mar 7, 2021
1 parent 87f6288 commit 585b680
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scompose/project/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def set_exec(self, params):
def set_run(self, params):
"""set arguments for run"""
run_group = params.get("run", {}) or {}
self.run_args = run_group.get("args", "")
if "|" in self.run_args:
self.run_args = run_group.get("args")
if self.run_args and "|" in self.run_args:
bot.exit("Pipes are not currently supported.")
self.run_opts = self._get_command_opts(run_group.get("options", []))

Expand Down Expand Up @@ -581,7 +581,7 @@ def create(self, ip_address=None, sudo=False, writable_tmpfs=False):
commands = "%s %s %s" % (
" ".join(self.run_opts),
self.uri,
self.run_args,
self.run_args or "",
)
bot.debug("singularity run %s" % commands)

Expand Down

0 comments on commit 585b680

Please sign in to comment.