OK. The following patch adds two new features and fixes a bug:
*Features*:
#1. For non-text formats, in addition to per-collection reports, one
can now get per-item reports (w/ selected fields if desired).
- e.g. `cobbler report --format=mediawiki --name=<item_name>`
- e.g. `cobbler report --format=trak --name=<item_name>
--what=<collection_type>` # this may be a more efficient version of
the above
- e.g. `cobbler report --format=csv --name=<item_name>
--fields=field1,field2,...fieldN`
#2. For non-text formats, one can specify subfields with an array
pattern (one may want to expand upon this by allowing the recognition
of hash patterns, etc. for the same purpose)
- e.g. `cobbler report --format=doku --what=<collection_type>
--fields=hostname,ks_meta[dom0],virt_ram`
- e.g. `cobbler report --format=mediawiki --name=<item_name>
--fields=hostname,kopts[ksdevice],kickstart`
*Bug Fixes:*
If more than one field is specified, than the program might crash.
NOTE: *THIS PATCH OBSOLETES THE ONE POSTED EARLIER IN THIS THREAD**
*Regards,
- Adam R.