Skip to content
Browse files

Merge pull request #941 from akshayramani/CA-52725

CA-52725 : Raise a host_offline exception when attempting to destroy a VLAN on an unreachable host.
  • Loading branch information...
2 parents 5c1491a + 1c7b76d commit fac70e47678631d12dca80be7700eb5d10890f73 @jonludlam jonludlam committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocaml/xapi/cli_operations.ml
View
2 ocaml/xapi/cli_operations.ml
@@ -3538,7 +3538,7 @@ let vlan_destroy printer rpc session_id params =
let vlan = Client.VLAN.get_by_uuid rpc session_id uuid in
Client.VLAN.destroy rpc session_id vlan
with
- | Api_errors.Server_error(s,_) as e when s=Api_errors.handle_invalid ->
+ | Api_errors.Server_error(s,_) as e when s=Api_errors.handle_invalid || s=Api_errors.host_offline ->
raise e
| _ ->
let pif = Client.PIF.get_by_uuid rpc session_id uuid in

0 comments on commit fac70e4

Please sign in to comment.
Something went wrong with that request. Please try again.