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:
Jakub Sokołowski 2024-07-02 21:40:26 +02:00
parent 42818e26f5
commit 9255dd0738
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4

View File

@ -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
}