Commit 0dedc837 by tarokkk

devenv: Preparated hook script

parent 4c5d80a1
...@@ -9,8 +9,9 @@ xml = base64.b64decode(sys.argv[1]) ...@@ -9,8 +9,9 @@ xml = base64.b64decode(sys.argv[1])
data = xmltodict.parse(xml) data = xmltodict.parse(xml)
try: try:
booturl = data["VM"]["TEMPLATE"]["CONTEXT"]["BOOTURL"] booturl = data["VM"]["TEMPLATE"]["CONTEXT"]["BOOTURL"]
(drop, b) = booturl.split(".hu", 1)
req=urllib2.Request("http://localhost:8080"+b)
response = urllib2.urlopen(req)
except: except:
print 'Error' print 'Error'
req=urllib2.Request(booturl)
response = urllib2.urlopen(req)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment