Skip to content

Commit

Permalink
openstack: set revisionValidated to zero
Browse files Browse the repository at this point in the history
To force revalidation if the volume changed

Signed-off-by: Benny Zlotnik <[email protected]>
  • Loading branch information
bennyz authored and ahadas committed Aug 27, 2023
1 parent e177d9b commit f2599b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/provider/container/openstack/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ func (r *VolumeAdapter) GetUpdates(ctx *Context) (updates []Updater, err error)
klog.Info("VM not found, skipping", "vmID", vmID)
continue
}
vm.Revision += 1
vm.RevisionValidated = 0
err = tx.Update(vm)
if err != nil {
klog.Error("Could not update VM revision", "vmID", vmID, "err", err)
Expand Down

0 comments on commit f2599b0

Please sign in to comment.