Skip to content

Commit

Permalink
fix bug detecting is log line terraform like
Browse files Browse the repository at this point in the history
  • Loading branch information
ianic committed Oct 13, 2021
1 parent cdd9c38 commit 62eeca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/log_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func NewLogParser() *Parser {
// Parse terraform line returns "", false if this is not log line from terraform.
// Returned string is user formatted, for printing in ui.
func (p *Parser) Parse(line string) (string, bool) {
if strings.HasPrefix(logPrefix, line) ||
strings.HasPrefix(outputLogPrefix, line) {
if !(strings.HasPrefix(line, logPrefix) ||
strings.HasPrefix(line, outputLogPrefix)) {
return "", false
}
if strings.HasPrefix(line, "TFO: >> terraform output") {
Expand Down

0 comments on commit 62eeca4

Please sign in to comment.