Skip to content

Commit

Permalink
Updated the vm diff
Browse files Browse the repository at this point in the history
- Added the new host_url to the VM diff function to detect changes
  • Loading branch information
cjlapao committed Nov 25, 2024
1 parent 1a9e7ee commit c3d0b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/models/virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func (m *VirtualMachine) Diff(source VirtualMachine) bool {
if m.HostId != source.HostId {
return true
}
if m.HostUrl != source.HostUrl {
return true
}
if m.HostState != source.HostState {
return true
}
Expand Down

0 comments on commit c3d0b95

Please sign in to comment.