Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix static-vdis script following return-type change of vdi-attach

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information...
commit 7a251a997b7286cfa10f24bc6fd5082a95726e46 1 parent ea70c02
@jonludlam jonludlam authored djs55 committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 scripts/static-vdis
View
5 scripts/static-vdis
@@ -150,7 +150,10 @@ def call_backend_attach(driver, config):
if xml[0] <> 0:
raise "SM_BACKEND_FAILURE(%d, %s, %s)" % xml
xmlrpc = xmlrpclib.loads(xml[1])
- path = xmlrpc[0][0]
+ try:
+ path = xmlrpc[0][0]['params']
+ except:
+ path = xmlrpc[0][0]
return path
def attach(vdi_uuid):
Please sign in to comment.
Something went wrong with that request. Please try again.