[Spacewalk-list] API error with scheduleApplyErrata
Olivier FONT
contact at olivierfont.fr
Fri May 12 10:21:40 UTC 2017
Hi folks,
I am facing an issue with my spacewalk release 2.6's API.
I try to schedule an Errata with the method "scheduleApplyErrata".
According with this method, I schedule the installation using an iso8601
format:
Method: scheduleApplyErrata
<https://10.31.252.200/rhn/apidoc/handlers/SystemHandler.jsp#top>
Description:
Schedules an action to apply errata updates to multiple systems at a given
date/time.
Parameters:
- string sessionKey
- array:
- int - serverId
- array:
- int - errataId
- dateTime.iso8601 earliestOccurrence
Returns:
- array:
- int - actionId
Available since: 13.0
I tried this :
Client.system.scheduleApplyErrata(Key,host.get('id'),errata.get('id'),str(20170512T13:20:24))
But Python returns this error message:
Client.system.scheduleApplyErrata(Key,host.get('id'),errata.get('id'),str(20170512T13:20:24))
SyntaxError: invalid
syntax
^
I tried different date format(2017-05-12T132024 2017-05-12T13:20:24, ...)
same result.
Is there a specific format for the earliestOccurence option?
Thanks for your help.
Olivier FONT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170512/977c1d4c/attachment.htm>
More information about the Spacewalk-list
mailing list