Adam Rosenwald wrote:
Tested against b2aaf2b3f5c8d758825028dacdeadbdd2e50e4a8. Please
commit.
Purpose of patch:
Examples:
(1) Prior to patch, try running 'cobbler report --format=mediawiki
--fields=hostname --what=repos'. In this case, one will receive a
stack trace, since 'hostname' is not a field for a "distro" item.
Correction. ..."since 'hostname' is not a field for a
"*repos*" item".
In this case --what=X could be any collection, where --fields=Y do not
exist.
(2) Prior to patch, try running 'cobbler report --format=mediawiki
--fields=ks_meta[X] --what=systems', where "X" is some metavariable
key in an 'X=Y' statement. In this case, if some set of systems
contain "ks_meta: 'X=Y,...'" and others do not, then a stack trace
will occur when reporting encounters one of the latter items.
---
Everything should be fixed now w.r.t. these kinds of edge case
issues. If there are more, please post them to the cobbler-devel list.
Regards,
- A.