Hi Shannon,
I reviewed and commited your patch as:
18d5b2f5ecaed6598a5ccb13d38abaf88a16442a
Thanks!
--
Jan Dobes
Satellite Engineering, Red Hat
- Original Message -
From: Shannon Hughes shug...@redhat.com
To: spacewalk-devel spacewalk-devel@redhat.com
Sent: Wednesday, September 4, 2013 10:45:41 PM
Subject: [Spacewalk-devel] patch for rhn-entitlement-report
rhn-entitlement-report crashes with stack trace when you unentitle
software channels from systems and leave unentitled:
[root@litmus ~]# rhn-entitlement-report
Software Channel Entitlements Across RHN Satellite :
Channel LabelTotal Regular Used Available
Total Flex Flex Used Available Flex
- -- -
-- - --
Traceback (most recent call last):
File /usr/bin/rhn-entitlement-report, line 100, in module
main()
File /usr/bin/rhn-entitlement-report, line 21, in main
printAcrossSatelliteUsage();
File /usr/bin/rhn-entitlement-report, line 38, in
printAcrossSatelliteUsage
for item in list:
TypeError: 'NoneType' object is not iterable
duplicated by setting up a few flex guests systems and then entitlement
them.
attaching patch that checks if the list is empty, print and then return.
will attach to bz 883242
Regards,
Shannon Hughes
Senior SEG/GSS
___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel
___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel