mirror of https://github.com/kubernetes/kops.git
Fix: support comparison of int types in dry-run
This avoids printing a change when the before and after values are the same.
This commit is contained in:
parent
a55614910d
commit
2b9c46bb83
|
@ -328,6 +328,9 @@ func buildChangeList[T SubContext](a, e, changes Task[T]) ([]change, error) {
|
|||
|
||||
case reflect.String:
|
||||
changed = fieldValC.Convert(reflect.TypeOf("")).Interface() != ""
|
||||
|
||||
case reflect.Int:
|
||||
changed = fieldValA.Int() != fieldValE.Int()
|
||||
}
|
||||
if !changed {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue