From b940380e124b349c5dd61692156810238acdf388 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 13 Aug 2018 04:52:19 +0300 Subject: [PATCH] status: print msg if there is nothing to reproduce Fixes #1001 Signed-off-by: Ruslan Kuprieiev --- dvc/command/status.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dvc/command/status.py b/dvc/command/status.py index 33b3ce3e5..2dfe7c7cd 100644 --- a/dvc/command/status.py +++ b/dvc/command/status.py @@ -29,7 +29,11 @@ class CmdDataStatus(CmdDataBase): cloud=self.args.cloud, show_checksums=self.args.show_checksums, remote=self.args.remote) - self._show(st, indent) + if st: + self._show(st, indent) + else: + self.project.logger.info("Nothing to reproduce. " + "Pipeline is up to date.") except Exception as exc: self.project.logger.error('Failed to obtain data status', exc) return 1