diff --git a/ocaml/xapi/xapi_vdi.ml b/ocaml/xapi/xapi_vdi.ml index c31f8d7fedf..b3c1dbfbd07 100644 --- a/ocaml/xapi/xapi_vdi.ml +++ b/ocaml/xapi/xapi_vdi.ml @@ -177,6 +177,8 @@ let check_operation_error ~__context ?(sr_records=[]) ?(pbd_records=[]) ?(vbd_re if not Smint.(has_capability Vdi_generate_config sm_features) then Some (Api_errors.sr_operation_not_supported, [Ref.string_of sr]) else None + | `snapshot when not Smint.(has_capability Vdi_snapshot sm_features) -> + Some (Api_errors.sr_operation_not_supported, [Ref.string_of sr]) | `snapshot when record.Db_actions.vDI_sharable -> Some (Api_errors.vdi_is_sharable, [ _ref ]) | `snapshot when reset_on_boot ->