Attached as requested.

Michael DeHaan wrote:
Adam Rosenwald wrote:
  
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.
    


Email has messed up your patch by word wrapping it.

Can you send this as an attachment so that I can just apply it with "git 
am" ?

Thanks!

--Michael
  

_______________________________________________
cobbler-devel mailing list
cobbler-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel