From 87f716d194b744592543d248d464acaaea447021 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Feb 04 2020 08:17:45 +0000 Subject: PR#1950: print warn to stderr instead of stdout Merges #1950 https://pagure.io/koji/pull-request/1950 Fixes: #1152 https://pagure.io/koji/issue/1152 hostinfo CLI call should send error message to error output for non existing host --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index dad6ffa..7c4b388 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3190,7 +3190,7 @@ def anon_handle_hostinfo(goptions, session, args): host = int(host) info = session.getHost(host) if info is None: - print("No such host: %s\n" % host) + warn("No such host: %s\n" % host) continue print("Name: %(name)s" % info) print("ID: %(id)d" % info)