Skip to content

idl: Remove unused vm_lacks_feature_* errors #6558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions ocaml/idl/datamodel_errors.ml
Original file line number Diff line number Diff line change
Expand Up @@ -532,26 +532,6 @@ let _ =
"You attempted an operation on a VM which requires a more recent version \
of the PV drivers. Please upgrade your PV drivers."
() ;
error Api_errors.vm_lacks_feature_shutdown ["vm"]
~doc:
"You attempted an operation which needs the cooperative shutdown feature \
on a VM which lacks it."
() ;
error Api_errors.vm_lacks_feature_vcpu_hotplug ["vm"]
~doc:
"You attempted an operation which needs the VM hotplug-vcpu feature on a \
VM which lacks it."
() ;
error Api_errors.vm_lacks_feature_suspend ["vm"]
~doc:
"You attempted an operation which needs the VM cooperative suspend \
feature on a VM which lacks it."
() ;
error Api_errors.vm_lacks_feature_static_ip_setting ["vm"]
~doc:
"You attempted an operation which needs the VM static-ip-setting feature \
on a VM which lacks it."
() ;
error Api_errors.vm_lacks_feature ["vm"]
~doc:"You attempted an operation on a VM which lacks the feature." () ;
error Api_errors.vm_is_template ["vm"]
Expand Down
9 changes: 0 additions & 9 deletions ocaml/xapi-consts/api_errors.ml
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,6 @@ let vm_old_pv_drivers = add_error "VM_OLD_PV_DRIVERS"

let vm_lacks_feature = add_error "VM_LACKS_FEATURE"

let vm_lacks_feature_shutdown = add_error "VM_LACKS_FEATURE_SHUTDOWN"

let vm_lacks_feature_suspend = add_error "VM_LACKS_FEATURE_SUSPEND"

let vm_lacks_feature_vcpu_hotplug = add_error "VM_LACKS_FEATURE_VCPU_HOTPLUG"

let vm_lacks_feature_static_ip_setting =
add_error "VM_LACKS_FEATURE_STATIC_IP_SETTING"

let vm_cannot_delete_default_template =
add_error "VM_CANNOT_DELETE_DEFAULT_TEMPLATE"

Expand Down
Loading