engine, etcd: Prevent engine thrashing
These two small bugs would allow thrashing to occur since we'd constantly delete and re-add exports, and constantly think that a noop etcd operation made a change.
This commit is contained in:
@@ -148,7 +148,7 @@ func SetResources(ctx context.Context, client interfaces.Client, hostname string
|
||||
return false, err
|
||||
}
|
||||
|
||||
b = b && out.Succeeded // collect the true/false responses...
|
||||
b = b && !out.Succeeded // collect the true/false responses...
|
||||
}
|
||||
|
||||
// false means something changed
|
||||
|
||||
Reference in New Issue
Block a user