Skip to content

Commit

Permalink
Skips ignoring ending block if is not in the block already
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Aug 23, 2023
1 parent ad2221e commit fc7c399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run/terraform_with_progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ func terraformWithProgress(command string, args []string) error {
goto NEXT
}

if reIgnoreBlockEnd.MatchString(line) {
if ignoreBlock && reIgnoreBlockEnd.MatchString(line) {
ignoreBlock = false
goto NEXT
}

if planFormat == "short" && reIgnoreShortBlockEnd.MatchString(line) {
if planFormat == "short" && ignoreBlock && reIgnoreShortBlockEnd.MatchString(line) {
ignoreBlock = false
goto NEXT
}
Expand Down

0 comments on commit fc7c399

Please sign in to comment.