Skip to content

Commit 4791466

Browse files
committed
CP-28132: remove domain_uuid from attach response
This field was unused. Signed-off-by: Gabor Igloi <[email protected]>
1 parent 3f3e9ea commit 4791466

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/datapath/block/Datapath.attach

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class Implementation(d.Datapath_skeleton):
1111
def attach(self, dbg, uri, domain):
1212
u = urlparse.urlparse(uri)
1313
return {
14-
'domain_uuid': '0',
15-
'implementation': [ 'Blkback', u.path ],
14+
'implementations': [ ['XenDisk', {"backend_type":"vbd", "extra":{}, "params":u.path}], ['BlockDevice', {"path":u.path}] ]
1615
}
1716

1817
if __name__ == "__main__":

main.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -956,9 +956,8 @@ let process_smapiv2_requests ~volume_script_dir =
956956
| Xapi_storage.Data.File { path } -> File { path }
957957
| Xapi_storage.Data.Nbd { uri } -> Nbd { uri }
958958
in
959-
let convert_backend = function Xapi_storage.Data.{ domain_uuid; implementations } ->
960-
{ domain_uuid
961-
; implementations = List.map ~f:convert_implementation response.Xapi_storage.Data.implementations
959+
let convert_backend = function Xapi_storage.Data.{ implementations } ->
960+
{ implementations = List.map ~f:convert_implementation response.Xapi_storage.Data.implementations
962961
}
963962
in
964963
Deferred.Result.return (R.success (Args.VDI.Attach2.rpc_of_response (convert_backend response)))

0 commit comments

Comments
 (0)