From cd240fed8c9b14268437a762d3d9378d8b7e40c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 29 Mar 2010 15:01:15 +0000 Subject: [PATCH] this shall fix the problem with test vnodes. --- source/BootAPI.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.43.0