Satellite API Question

Latest response

Hello all,

 

I am trying to write a python script for Satellite's API that will schedule a remote command. The problem is that even though I schedule the command to run now Satellite schedules 2 hours later. Here is my code:

def schedule_script

    earliest_occurrence = xmlrpclib.DateTime()

    print earliest_occurrence

    client.system.scheduleScriptRun(key, id, "root", "root", 300, script, earliest_occurrence)
 
schedule_script()
client.auth.logout(key)
 
 
When I screen print the variable "earliest_occurrence" it returns the correct time but for some reason Satellite will schedule the command exactly 2 hours from that time (current time). Has anyone ran into this issue? (also I verified that the Satellite server has the right time as well)
 
Any help would be greatly appreciated. Thanks!
 

Responses