[NEW PATCH] BZ#730536 Bootstrap should create VDSM_DIR (via gerrit-bot)

Federico Simoncelli fsimonce at redhat.com
Tue Aug 16 19:35:06 UTC 2011


New patch submitted by Federico Simoncelli (fsimonce at redhat.com)

You can review this change at: http://gerrit.usersys.redhat.com/822

commit 5f6611109be1effd97cf1a9668f2a8196cd9cae0
Author: Federico Simoncelli <fsimonce at redhat.com>
Date:   Tue Aug 16 19:33:23 2011 +0000

    BZ#730536 Bootstrap should create VDSM_DIR
    
    The bootstrap needs to create the VDSM_DIR in order to successfully add
    it to sys.path.
    
    Change-Id: I79edbdf98dc6484b99cdfbe35ee0f9dd22071578

diff --git a/vds_bootstrap/vds_bootstrap.py b/vds_bootstrap/vds_bootstrap.py
index 7929f36..6a06852 100755
--- a/vds_bootstrap/vds_bootstrap.py
+++ b/vds_bootstrap/vds_bootstrap.py
@@ -121,6 +121,10 @@ VDSM_DIR = "/usr/share/vdsm/"
 DTV_REPO='/tmp/dtv.'+rnum+'.repo'
 
 # Adding VDSM_DIR to the current python path
+try:
+    os.mkdir(VDSM_DIR, 0755)
+except OSError:
+    pass
 sys.path.append(VDSM_DIR)
 
 class Deploy:




More information about the vdsm-patches mailing list