uyuni-project / contrib

Collection of tools that are are not (yet!) officially part of the Uyuni product
8 stars 5 forks source link

timeout in update_script yaml file do not take effect #21

Open tani-DN opened 1 year ago

tani-DN commented 1 year ago

Hi,

the timeout in the update_script/ yaml files can not be configured. It seams like it ist hard coded for 60 seconds.

If you change the system_update.py script on line 353 manually, like:

smt.system_schedulescriptrun("#!/bin/bash\n" + script, 360, xmlrpc.client.DateTime(datetime.datetime.now()))

you change the timeout to 360 secounds.

Otherwise the timeout is always 60 regardless of what value is entered for the timeout in the general file (for example):

begin: timeout: 180 commands:

- cd /tmp; rm -rf *

 - /opt/susemanager/testscript.sh
state:

end: timeout: 180 commands: