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 sys
|
||||||
import base64
|
import base64
|
||||||
|
import string
|
||||||
|
import os
|
||||||
|
import tempfile
|
||||||
|
|
||||||
def vm_data(args):
|
def vm_data(args):
|
||||||
|
|
||||||
@ -30,6 +33,7 @@ def vm_data(args):
|
|||||||
cmd.append("-d")
|
cmd.append("-d")
|
||||||
cmd.append(tmp_path)
|
cmd.append(tmp_path)
|
||||||
except:
|
except:
|
||||||
|
if (fd !=None):
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
os.remove(tmp_path)
|
os.remove(tmp_path)
|
||||||
return ''
|
return ''
|
||||||
@ -47,14 +51,18 @@ def vm_data(args):
|
|||||||
return txt
|
return txt
|
||||||
|
|
||||||
def parseFileData(fileName):
|
def parseFileData(fileName):
|
||||||
args = []
|
args = {}
|
||||||
fd = open(fileName)
|
fd = open(fileName)
|
||||||
|
|
||||||
line = fd.readline()
|
line = fd.readline()
|
||||||
while (line != ""):
|
while (line != ""):
|
||||||
args.append(line)
|
key=string.strip(line[:], '\n')
|
||||||
line = fd.readline()
|
line=fd.readline()
|
||||||
|
val=string.strip(line[:], '\n')
|
||||||
|
args[key]=val
|
||||||
|
line=fd.readline()
|
||||||
return args
|
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