Skip to content

Commit

Permalink
fix prefix trimming from terraform logs
Browse files Browse the repository at this point in the history
Trim doesn't look as parameter as a word to remove but as collection of
characters.
  • Loading branch information
Ivan Vlasic committed Dec 7, 2021
1 parent cf6fdde commit 38741a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/terraform/log_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (p *Parser) Parse(line string) bool {
p.state = StateDone
}
if p.collectingError {
line = strings.Trim(line, logPrefix)
line = strings.TrimPrefix(line, logPrefix)
p.errorMessage += line + "\n"
return true
}
Expand Down

0 comments on commit 38741a1

Please sign in to comment.