From 8181ca4a9a8d6ade6974a7606939b5d1b1b5cf75 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 7 Jan 2018 17:05:58 +0200 Subject: [PATCH] show: fix CmdShowPipeline Signed-off-by: Ruslan Kuprieiev --- dvc/command/show_pipeline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dvc/command/show_pipeline.py b/dvc/command/show_pipeline.py index 873378a45..09af857ae 100644 --- a/dvc/command/show_pipeline.py +++ b/dvc/command/show_pipeline.py @@ -26,8 +26,7 @@ class CmdShowPipeline(CmdBase): def draw_targets(self, target): if not target: - target = '.' - return self.draw(self.g, target, target) + return self.draw(self.g, '.', 'all') for t in self.args.target: fname_suffix = os.path.basename(os.path.normpath(t)) @@ -59,7 +58,6 @@ class CmdShowPipeline(CmdBase): def collect_stage(self, stage): name = os.path.relpath(stage.path, self.project.root_dir) - state = StateFile.load(data_item, self.git) self.g.add_node(name) @@ -68,7 +66,7 @@ class CmdShowPipeline(CmdBase): self.g.add_node(i) self.g.add_edge(i, name) - for out in state.outs: + for out in stage.outs: o = os.path.relpath(out.path, self.project.root_dir) self.g.add_node(o) self.g.add_edge(name, o)