Skip to content

Commit

Permalink
CA-394851: Update allowed operations on the cloned VBD
Browse files Browse the repository at this point in the history
Default empty allowed_operations on a cloned VBD means that XenCenter
does not display the DVD option in the console tab for VMs cloned from
templates, for example.

Follow the practice in xapi_vbd, and update_allowed_operations immediately
after Db.VBD.create.

Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
  • Loading branch information
last-genius committed Dec 5, 2024
1 parent c141b6d commit d3c9a50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocaml/xapi/xapi_vbd_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,5 @@ let copy ~__context ?vdi ~vm vbd =
~qos_algorithm_type:all.API.vBD_qos_algorithm_type
~qos_algorithm_params:all.API.vBD_qos_algorithm_params
~qos_supported_algorithms:[] ~runtime_properties:[] ~metrics ;
update_allowed_operations ~__context ~self:new_vbd ;
new_vbd

0 comments on commit d3c9a50

Please sign in to comment.