Skip to content

Commit

Permalink
place USER_UPDATE_VM_DISK in the 'Disk' section
Browse files Browse the repository at this point in the history
The VM-specific properties (e.g., disk interface) are handled by
VMAdapter. The handling by DiskAdapter of USER_UPDATE_VM_DISK events is
for updating the disk properties that are not VM-specific, this moving
this event to the section of disk-events (minor change).

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Nov 12, 2023
1 parent 3e72ef0 commit 5e5e4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/provider/container/ovirt/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ func (r *DiskAdapter) Event() []int {
USER_ADD_DISK_FINISHED_SUCCESS,
USER_ADD_DISK_TO_VM_SUCCESS,
USER_REMOVE_DISK,
USER_UPDATE_VM_DISK,
// VM
USER_FINISHED_REMOVE_DISK_ATTACHED_TO_VMS,
USER_REMOVE_DISK_FROM_VM,
Expand All @@ -996,7 +997,6 @@ func (r *DiskAdapter) Event() []int {
USER_ADD_VM_FINISHED_SUCCESS,
IMPORTEXPORT_IMPORT_VM,
USER_REMOVE_VM,
USER_UPDATE_VM_DISK,
// StorageDomain.
USER_DETACH_STORAGE_DOMAIN_FROM_POOL,
USER_FORCE_REMOVE_STORAGE_DOMAIN,
Expand Down

0 comments on commit 5e5e4f8

Please sign in to comment.