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
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
