Commit 0dedc837 by tarokkk

devenv: Preparated hook script

parent 4c5d80a1
......@@ -9,8 +9,9 @@ xml = base64.b64decode(sys.argv[1])
data = xmltodict.parse(xml)
try:
booturl = data["VM"]["TEMPLATE"]["CONTEXT"]["BOOTURL"]
(drop, b) = booturl.split(".hu", 1)
req=urllib2.Request("http://localhost:8080"+b)
response = urllib2.urlopen(req)
except:
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