Skip to content

Commit 39a988c

Browse files
committed
Keep previous http handler for back-compat
In commit 2eff6ab, the http handler was renamed to add an "import" in the url, but we need to keep the previous one for backwards compatability. This is so that previous versions of sparse_dd in XS 8 can migrate to the latest one. Signed-off-by: Vincent Liu <[email protected]>
1 parent cb30e77 commit 39a988c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/xapi_services.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ let put_handler (req : Http.Request.t) s _ =
206206
| [""; services; "SM"; "nbd"; vm; sr; vdi; dp] when services = _services
207207
->
208208
Storage_migrate.nbd_handler req s ~vm sr vdi dp
209+
| [""; services; "SM"; "nbdproxy"; vm; sr; vdi; dp]
209210
| [""; services; "SM"; "nbdproxy"; "import"; vm; sr; vdi; dp]
210211
when services = _services ->
211212
Storage_migrate.import_nbd_proxy req s vm sr vdi dp

0 commit comments

Comments
 (0)