mirror of
https://github.com/rancher/norman.git
synced 2025-08-01 23:41:24 +00:00
Fix non-updating condition
This commit is contained in:
parent
151aa66e3e
commit
d63581239c
@ -223,7 +223,7 @@ func findOrCreateCond(obj interface{}, condName string) reflect.Value {
|
||||
newCond.FieldByName("Type").SetString(condName)
|
||||
newCond.FieldByName("Status").SetString("Unknown")
|
||||
condSlice.Set(reflect.Append(condSlice, newCond))
|
||||
return newCond
|
||||
return *findCond(condSlice, condName)
|
||||
}
|
||||
|
||||
func findCond(val reflect.Value, name string) *reflect.Value {
|
||||
|
Loading…
Reference in New Issue
Block a user