terraform: make sure our serial is always higher

pull/1306/head
Mitchell Hashimoto 11 years ago
parent f68f285f72
commit 9c6e2cdc21

@ -224,6 +224,10 @@ func (s *State) IncrementSerialMaybe(other *State) {
return
}
if !s.Equal(other) {
if other.Serial > s.Serial {
s.Serial = other.Serial
}
s.Serial++
}
}

Loading…
Cancel
Save