terraform: make sure our serial is always higher
This commit is contained in:
parent
f68f285f72
commit
9c6e2cdc21
|
@ -224,6 +224,10 @@ func (s *State) IncrementSerialMaybe(other *State) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !s.Equal(other) {
|
if !s.Equal(other) {
|
||||||
|
if other.Serial > s.Serial {
|
||||||
|
s.Serial = other.Serial
|
||||||
|
}
|
||||||
|
|
||||||
s.Serial++
|
s.Serial++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue