<div dir="ltr"><div><div>Hi folks,<br><br>I am facing an issue with my spacewalk release 2.6's API.<br></div>I try to schedule an Errata with the method "scheduleApplyErrata".<br><br></div>According with this method, I schedule the installation using an iso8601 format:<br><div><div><div class="gmail_signature"><h3> <a name="scheduleApplyErrata" href="https://10.31.252.200/rhn/apidoc/handlers/SystemHandler.jsp#top">Method: scheduleApplyErrata</a></h3>
Description:<br>
Schedules an action to apply errata updates to multiple systems at a
 given date/time.
<p>




Parameters:<br>
</p><ul><li>

    string sessionKey
 </li><li>

array:
<ul><li>int - serverId</li></ul>
 </li><li>

array:
<ul><li>int - errataId</li></ul>
 </li><li>

dateTime.iso8601 earliestOccurrence 
 </li></ul>
<p>
Returns:
<code></code></p><ul><li><code>


array:
<ul><li>int - actionId</li></ul>
 
</code></li></ul><code>
</code>
<p>
Available since: 13.0 </p>I tried this : <br>Client.system.scheduleApplyErrata(Key,host.get('id'),errata.get('id'),str(20170512T13:20:24))<br></div><div class="gmail_signature"><br>But Python returns this error message:<br><br>Client.system.scheduleApplyErrata(Key,host.get('id'),errata.get('id'),str(20170512T13:20:24))<br>SyntaxError: invalid syntax                                                                                 ^<br></div><div class="gmail_signature"><br>I tried different date format(2017-05-12T132024 2017-05-12T13:20:24, ...) same result.<br><br>Is there a specific format for the earliestOccurence option?<br></div><div class="gmail_signature"><br>Thanks for your help.<br></div><div class="gmail_signature">Olivier FONT</div>
</div><br></div></div>