Skip to content

Commit

Permalink
Fixed case when DLG_ROOT not set
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Feb 8, 2022
1 parent 06d65c6 commit 8f22482
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daliuge-engine/dlg/apps/dockerapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ def initialize(self, **kwargs):
# on the host system. They are given either as a list or as a
# comma-separated string
self._additionalBindings = {}
bindings = [f"{DLG_ROOT}:{DLG_ROOT}"] # this is the default binding
bindings = []
if (len(DLG_ROOT) > 0): bindings = [f"{DLG_ROOT}:{DLG_ROOT}"]
bindings += self._getArg(kwargs, "additionalBindings", [])
bindings = bindings.split(",") if isinstance(bindings, str) else bindings
for binding in bindings:
Expand Down

0 comments on commit 8f22482

Please sign in to comment.