From: Rok Strnisa Date: Wed, 26 Jan 2011 17:39:04 +0000 (+0000) Subject: CA-41976: Field type error --- create_template field problem. FIXED. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5a42f66c42b5acd9ee37488bd6c09b4c4c106094;p=xcp%2Fxen-api.git CA-41976: Field type error --- create_template field problem. FIXED. Signed-off-by: Rok Strnisa --- diff --git a/ocaml/idl/datamodel.ml b/ocaml/idl/datamodel.ml index 69d27aa7..81c77b7d 100644 --- a/ocaml/idl/datamodel.ml +++ b/ocaml/idl/datamodel.ml @@ -5755,7 +5755,7 @@ let vm_power_state = let vm_operations = Enum ("vm_operations", List.map operation_enum - [ vm_snapshot; vm_clone; vm_copy; vm_revert; vm_checkpoint; vm_snapshot_with_quiesce; + [ vm_snapshot; vm_clone; vm_copy; vm_create_template; vm_revert; vm_checkpoint; vm_snapshot_with_quiesce; vm_provision; vm_start; vm_start_on; vm_pause; vm_unpause; vm_cleanShutdown; vm_cleanReboot; vm_hardShutdown; vm_stateReset; vm_hardReboot; vm_suspend; csvm; vm_resume; vm_resume_on; diff --git a/ocaml/xapi/xapi_vm_lifecycle.ml b/ocaml/xapi/xapi_vm_lifecycle.ml index 06f8ed45..8263da4b 100644 --- a/ocaml/xapi/xapi_vm_lifecycle.ml +++ b/ocaml/xapi/xapi_vm_lifecycle.ml @@ -65,6 +65,7 @@ let allowed_power_states ~(op:API.vm_operations) = -> [`Halted; `Running] | `clone | `copy + | `create_template (* Don't touch until XMLRPC unmarshal code is able to pre-blank fields on input. *) | `export -> [`Halted; `Suspended] | `hard_reboot