On 14/09/10 01:53, Jeremy Hansen wrote:
Is there a resource for cobbler api examples? Currently I'm trying to use the XMLAPI interface and I'm having some issues.
xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:set_dns_name() takes exactly 3 arguments (2 given)'>
When I add an additional argument for the interface, modify_system() breaks:
xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:modify_system() takes exactly 5 arguments (6 given)'>
You're really going to have to show us what you are trying :)
If anyone has an example of modifying dns_name within an existing system profile, this would be very helpful in understanding how this works. I'm obviously pretty green when it comes to working with the API.
I've done some, but as I say, show us the code :)
Stuart