Skip to content

Commit

Permalink
Merge pull request #138 from sdemos/always-validate
Browse files Browse the repository at this point in the history
pkg/daemon: remove annotation equality test from validation
  • Loading branch information
openshift-merge-robot committed Oct 31, 2018
2 parents 038d67d + df97fcf commit 214b930
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,6 @@ func (dn *Daemon) isDesiredMachineState() (bool, string, error) {
if err != nil {
return false, "", err
}
// if the current annotation is equal to the desired annotation,
// system state is valid.
if strings.Compare(dcAnnotation, ccAnnotation) == 0 {
return true, dcAnnotation, nil
}

currentConfig, err := getMachineConfig(dn.client.MachineconfigurationV1().MachineConfigs(), ccAnnotation)
if err != nil {
Expand Down

0 comments on commit 214b930

Please sign in to comment.