Skip to content

Commit

Permalink
stage: set default values for fields from stage files
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
efiop committed Mar 20, 2018
1 parent 91c0a82 commit cf74f9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dvc/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def reproduce(self, force=False):
def loadd(project, d, path):
path = os.path.abspath(path)
cwd = os.path.dirname(path)
cmd = d[Stage.PARAM_CMD]
deps = Dependency.loadd_from(project, d[Stage.PARAM_DEPS], cwd=cwd)
outs = Output.loadd_from(project, d[Stage.PARAM_OUTS], cwd=cwd)
cmd = d.get(Stage.PARAM_CMD, None)
deps = Dependency.loadd_from(project, d.get(Stage.PARAM_DEPS, []), cwd=cwd)
outs = Output.loadd_from(project, d.get(Stage.PARAM_OUTS, []), cwd=cwd)

return Stage(project=project,
path=path,
Expand Down

0 comments on commit cf74f9b

Please sign in to comment.