Sample output:
koji hostinfo buildhw-02.phx2.fedoraproject.org Name: buildhw-02.phx2.fedoraproject.org ID: 100 Arches: x86_64 i386 Capacity: 4.0 Task Load: 0.10 Description: None Comment: None Enabled: yes Ready: yes Last Update: 2017-04-27 15:08:00 Channels: default createrepo appliance livecd image livemedia Active Buildroots: None
rebased
Made a change to how channels are displayed, new output:
koji hostinfo 100 Name: buildhw-02.phx2.fedoraproject.org ID: 100 Arches: x86_64 i386 Capacity: 4.0 Task Load: 0.00 Description: None Comment: None Enabled: yes Ready: yes Last Update: 2017-04-27 15:15:57 Channels: default createrepo appliance livecd image livemedia Active Buildroots: None
splitlines() is preferred
Maybe just leave blank, as the web ui does?
similar comments on this part
seems like a list comprehension would work nicely here [c['name] for c in session.listChannels(hostID=info['id']]
Can we also show state and creation time as web does?
We can't use .format quite yet. Not until we formally drop RHEL5 support
Commit 63df56ea fixes this pull-request
Pull-Request has been merged by mikem@redhat.com
Sample output:
koji hostinfo buildhw-02.phx2.fedoraproject.org
Name: buildhw-02.phx2.fedoraproject.org
ID: 100
Arches: x86_64 i386
Capacity: 4.0
Task Load: 0.10
Description: None
Comment: None
Enabled: yes
Ready: yes
Last Update: 2017-04-27 15:08:00
Channels:
default
createrepo
appliance
livecd
image
livemedia
Active Buildroots:
None