On 10/02/2012 04:39 PM, David Rock wrote:
It is JSON, so just parse it as such. Alternatively, you could use a
ruby XMLRPC library to connect to cobblerd directly and get the
objects via the API, rather than shell out to the command line.
I think it's actually a dump of a python dict, not JSON proper. Don't
forget cobbler is primarily written in python.
I don't know offhand if there are any python-based tools to take a text
output of a dict and reconstruct it into a proper dict object or not.
OK, I've figured it out. It is some strange format that looks alike
JSON, but I had to substitute singlequote for doublequotes and convert
to lowercase True/False and then it can be parsed as JSON.
I'm now trying to figure out XMLRPC, and how to use interface through
ruby, so when I'm done I'll post the solution here, so that the wiki
page can be updated with ruby example.
--
Jakov Sosic
www.srce.unizg.hr
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler