From 1eb89a2dc0990eaae33da8a11fefe58888e553fa Mon Sep 17 00:00:00 2001 From: eggqq007 <32856938+eggqq007@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:42:47 +0800 Subject: [PATCH] command: Should not consume 'print' to output default remote info (#6650) 1. should not consume 'print' to output default remote info, otherwise the --quiet would not work. Co-authored-by: Zhenyu Gao --- dvc/command/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/command/remote.py b/dvc/command/remote.py index cb9121888..b7b094989 100644 --- a/dvc/command/remote.py +++ b/dvc/command/remote.py @@ -86,7 +86,7 @@ class CmdRemoteDefault(CmdRemote): if self.args.name is None and not self.args.unset: conf = self.config.read(self.args.level) try: - print(conf["core"]["remote"]) + ui.write(conf["core"]["remote"]) except KeyError: ui.write("No default remote set") return 1