Skip to content

Commit

Permalink
Fix static-vdis script following return-type change of vdi-attach
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information
Jon Ludlam authored and David Scott committed Apr 22, 2012
1 parent ea70c02 commit 7a251a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/static-vdis
Expand Up @@ -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):
Expand Down

0 comments on commit 7a251a9

Please sign in to comment.