Skip to content

Commit

Permalink
Merge pull request #941 from akshayramani/CA-52725
Browse files Browse the repository at this point in the history
CA-52725 : Raise a host_offline exception when attempting to destroy a VLAN on an unreachable host.
  • Loading branch information
Jon Ludlam committed Dec 18, 2012
2 parents 5c1491a + 1c7b76d commit fac70e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/xapi/cli_operations.ml
Expand Up @@ -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
Expand Down

0 comments on commit fac70e4

Please sign in to comment.