mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
1) Add vmwapre library jars to deps and purposely left vmware-axis.jar behind to use cloud-axis.jar instead, this is to solve the conflict between iControl.jar
2) Fix issues in setting user_data python implementation for vmware
This commit is contained in:
parent
7d7817ecba
commit
1689ed8150
BIN
deps/vmware-apputils.jar
vendored
Normal file
BIN
deps/vmware-apputils.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-credstore.jar
vendored
Normal file
BIN
deps/vmware-credstore.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-activation.jar
vendored
Normal file
BIN
deps/vmware-lib-activation.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-jaxen-core.jar
vendored
Normal file
BIN
deps/vmware-lib-jaxen-core.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-jaxen-jdom.jar
vendored
Normal file
BIN
deps/vmware-lib-jaxen-jdom.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-jaxrpc.jar
vendored
Normal file
BIN
deps/vmware-lib-jaxrpc.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-jdom.jar
vendored
Normal file
BIN
deps/vmware-lib-jdom.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-mailapi.jar
vendored
Normal file
BIN
deps/vmware-lib-mailapi.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-saxpath.jar
vendored
Normal file
BIN
deps/vmware-lib-saxpath.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-smtp.jar
vendored
Normal file
BIN
deps/vmware-lib-smtp.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-wbem.jar
vendored
Normal file
BIN
deps/vmware-lib-wbem.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-xalan.jar
vendored
Normal file
BIN
deps/vmware-lib-xalan.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-xerces.jar
vendored
Normal file
BIN
deps/vmware-lib-xerces.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-lib-xml-apis.jar
vendored
Normal file
BIN
deps/vmware-lib-xml-apis.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-vim.jar
vendored
Normal file
BIN
deps/vmware-vim.jar
vendored
Normal file
Binary file not shown.
BIN
deps/vmware-vim25.jar
vendored
Normal file
BIN
deps/vmware-vim25.jar
vendored
Normal file
Binary file not shown.
@ -2,6 +2,9 @@
|
||||
|
||||
import sys
|
||||
import base64
|
||||
import string
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
def vm_data(args):
|
||||
|
||||
@ -30,8 +33,9 @@ def vm_data(args):
|
||||
cmd.append("-d")
|
||||
cmd.append(tmp_path)
|
||||
except:
|
||||
os.close(fd)
|
||||
os.remove(tmp_path)
|
||||
if (fd !=None):
|
||||
os.close(fd)
|
||||
os.remove(tmp_path)
|
||||
return ''
|
||||
|
||||
try:
|
||||
@ -47,14 +51,18 @@ def vm_data(args):
|
||||
return txt
|
||||
|
||||
def parseFileData(fileName):
|
||||
args = []
|
||||
args = {}
|
||||
fd = open(fileName)
|
||||
|
||||
line = fd.readline()
|
||||
while (line != ""):
|
||||
args.append(line)
|
||||
line = fd.readline()
|
||||
|
||||
key=string.strip(line[:], '\n')
|
||||
line=fd.readline()
|
||||
val=string.strip(line[:], '\n')
|
||||
args[key]=val
|
||||
line=fd.readline()
|
||||
return args
|
||||
|
||||
vmdata(parseFileData("/tmp/" + sys.argv[1]))
|
||||
|
||||
if __name__ == "__main__":
|
||||
vm_data(parseFileData("/tmp/" + sys.argv[1]))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user