Permalink
Browse files

smapiv2: update to match Sr_not_attached arity change in xen-api

  • Loading branch information...
1 parent db4e3c1 commit 5003d4249204807fb37c8a50ea0d0e4e243e6d2f David Scott committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/fs.py
  2. +1 −1 smapiv2.ml
View
@@ -95,7 +95,7 @@ def attach(self, sr, device_config):
paths[sr] = path
def detach(self, sr):
if not sr in paths:
- raise Sr_not_attached()
+ raise Sr_not_attached(sr)
del paths[sr]
def destroy(self, sr):
pass
View
@@ -52,7 +52,7 @@ let api =
{
TyDecl.name = "Sr_not_attached";
description = "An SR must be attached in order to access VDIs";
- ty = Type.Unit
+ ty = Type.(Basic String)
}; {
TyDecl.name = "Vdi_does_not_exist";
description = "The specified VDI could not be found in the SR";

0 comments on commit 5003d42

Please sign in to comment.