Skip to content

Commit b1b140a

Browse files
committed
xapi_vdi: copy tags on VDI clone and snapshot
Cloned and snapshotted VMs copy tags, keep the same behaviour for VDIs so users re not surprised. Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
1 parent cd5e222 commit b1b140a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/xapi_vdi.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ let snapshot_and_clone call_f ~__context ~vdi ~driver_params =
849849
Db.VDI.set_on_boot ~__context ~self:newvdi ~value:vdi_rec.API.vDI_on_boot ;
850850
Db.VDI.set_allow_caching ~__context ~self:newvdi
851851
~value:vdi_rec.API.vDI_allow_caching ;
852+
Db.VDI.set_tags ~__context ~self:newvdi ~value:vdi_rec.API.vDI_tags ;
852853
newvdi
853854

854855
let snapshot ~__context ~vdi ~driver_params =

0 commit comments

Comments
 (0)