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
This commit is contained in:
commit
87f716d194
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue