Using xmlrpclib to schedule a remote command
Has anyone experienced issues using this Python library? I have to use it with Satellite's API and it constantly gives me problems. For example, when trying to schedule a script remotely I use:
import xmlrpclib
earliest_occurrence = xmlrpclib.DateTime()
client.system.scheduleScriptRun(key, id, "root", "root", 600, script, earliest_occurrence)
Sometimes it works but most of the time I get this error in response:
TypeError: cannot marshal <type 'function'> objects
TypeError: cannot marshal <type 'function'> objects
Is there a way around using this xmlrpclib function to schedule the time? I have found this library to be extremely inconsistent. Any help would be greatly appreciated.
Thanks!