mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6298:[Windows] if already tmp directory exists inject keys is dailing on widows while starting the management server
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
54d3a3dc90
commit
b814783a63
@ -31,9 +31,11 @@ import subprocess
|
||||
import commands
|
||||
import traceback
|
||||
import filecmp
|
||||
import tempfile
|
||||
|
||||
pathSep=os.sep
|
||||
TMP=os.path.expanduser("~") + os.sep + "tmp" #Get Home Directory
|
||||
TMP=tempfile.gettempdir() + os.sep + "tmp" #Get Home Directory
|
||||
print("Temp Directory is : %s" % TMP)
|
||||
MOUNTPATH=TMP + pathSep + "systemvm_mnt"
|
||||
TMPDIR=TMP + pathSep + "cloud" + pathSep + "systemvm"
|
||||
osType=os.name
|
||||
@ -81,7 +83,7 @@ def inject_into_iso(pubKey,systemiso):
|
||||
try :
|
||||
shutil.copytree(MOUNTPATH, TMPDIR)
|
||||
except :
|
||||
print ("Failed to copy from original iso %s" % isofile)
|
||||
print ("Failed to copy from original iso %s to %s" % (MOUNTPATH, TMPDIR))
|
||||
clean_up()
|
||||
sys.exit(IOError)
|
||||
try :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user