Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing fails when only any output values are added #95

Open
johnmanjiro13 opened this issue Jul 12, 2021 · 0 comments
Open

Parsing fails when only any output values are added #95

johnmanjiro13 opened this issue Jul 12, 2021 · 0 comments

Comments

@johnmanjiro13
Copy link
Contributor

johnmanjiro13 commented Jul 12, 2021

WHAT

When I add an output value only and run terraform plan, tfnotify caused an error and return exit code 1.

WHY

terraform version: 1.0.0

tfnotify checks texts with regular expression below.
https://github.com/mercari/tfnotify/blob/master/terraform/parser.go#L64
But when we ran plan adding any output values only, terraform's output didn't contain Plan: or No changes and tfnotify failed to parse.
Terraform's output result is a like below:

pagerduty_schedule.secondary: Refreshing state...
pagerduty_schedule.primary: Refreshing state...
pagerduty_team_membership.team[0]: Refreshing state...
pagerduty_team_membership.team[1]: Refreshing state...
pagerduty_escalation_policy.team: Refreshing state...
pagerduty_service.team: Refreshing state...
pagerduty_service_integration.datadog: Refreshing state...

------------------------------------------------------------------------

Changes to Outputs:
  + my_another_project_name = "my-another-project"

------------------------------------------------------------------------

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant