From: Barış Metin Date: Mon, 29 Mar 2010 15:01:15 +0000 (+0000) Subject: this shall fix the problem with test vnodes. X-Git-Tag: BootManager-5.0-3~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cd240fed8c9b14268437a762d3d9378d8b7e40c9;p=bootmanager.git this shall fix the problem with test vnodes. --- diff --git a/source/BootAPI.py b/source/BootAPI.py index b080499..2ef649b 100644 --- a/source/BootAPI.py +++ b/source/BootAPI.py @@ -17,6 +17,7 @@ import string import sha import cPickle import utils +import os from Exceptions import * @@ -72,6 +73,8 @@ def create_auth_structure( vars, call_params ): vars['NODE_SESSION'] = session # NOTE: save session value to /etc/planetlab/session for # RunlevelAgent and future BootManager runs + if not os.path.exists("/etc/planetlab"): + os.makedirs("/etc/planetlab") sessionfile = open('/etc/planetlab/session', 'w') sessionfile.write( vars['NODE_SESSION'] ) sessionfile.close()