mirror of
https://github.com/status-im/infra-utils.git
synced 2025-02-22 17:08:25 +00:00
terraform/rename.awk: add extra next
Necessary to load both lines in right order. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
42818e26f5
commit
9255dd0738
@ -4,11 +4,12 @@
|
||||
if ($5 == "updated") {
|
||||
next
|
||||
}
|
||||
if ($5 == "destroyed") {
|
||||
old = $2
|
||||
next
|
||||
}
|
||||
if ($5 == "created") {
|
||||
new = $2
|
||||
}
|
||||
if ($5 == "destroyed") {
|
||||
old = $2
|
||||
printf "terraform state mv '%s' '%s'\n", old, new
|
||||
}
|
||||
printf "terraform state mv '%s' '%s'\n", old, new
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user