From 391b7412acf6275cafa81ef86d5fa522831afa05 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Jan 16 2020 13:21:16 +0000 Subject: print warn to stderr instead of stdout Fixes: https://pagure.io/koji/issue/1152 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 3b398b5..f96fd72 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3177,7 +3177,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)