Date: Fri, 21 Aug 2015 14:07:09 GMT From: kczekirda@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r290010 - soc2015/kczekirda/www Message-ID: <201508211407.t7LE79DK030334@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kczekirda Date: Fri Aug 21 14:07:08 2015 New Revision: 290010 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=290010 Log: fix typo and change boot script when waiting for env Modified: soc2015/kczekirda/www/menu.py Modified: soc2015/kczekirda/www/menu.py ============================================================================== --- soc2015/kczekirda/www/menu.py Fri Aug 21 12:41:52 2015 (r290009) +++ soc2015/kczekirda/www/menu.py Fri Aug 21 14:07:08 2015 (r290010) @@ -144,8 +144,10 @@ c.execute("SELECT revision from tasks WHERE status LIKE 'new' ORDER by ID LIMIT 1") result = c.fetchone() revision = result[0] - c.execute("UPDATE tasks SET host = ? WHERE revision LIKE ?", (host,revision)) - conn.commit() + c.execute("UPDATE tasks SET host = ? WHERE revision LIKE ?", (host,revision)) + boot = "wait.ipxe" + c.execute("UPDATE nodes SET boot = ? WHERE host LIKE ?", (boot,host)) + conn.commit() create_env = '/cluster/new_task.sh '+revision+' '+host+' &' os.system(create_env) return redirect('/static/wait.ipxe')
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508211407.t7LE79DK030334>