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

Fixing Bug in Service Resource Where alert_grouping_timeout wasn't saving 0 values #190

Merged
merged 16 commits into from
Mar 18, 2020

Conversation

stmcallister
Copy link
Contributor

"Customer is trying to add the alert_grouping_timeout argument with a value of 0 so that their service's alert grouping continues until the PD incident is resolved. When they add this parameter, it is not reflected in the API request made to us. "

I changed GetOk to GetOkExists to allow for values of 0. Test results here:

TF_ACC=1 go test -run "TestAccPagerDutyService_Basic" ./pagerduty -v -timeout 120m
=== RUN   TestAccPagerDutyService_Basic
--- PASS: TestAccPagerDutyService_Basic (13.76s)
=== RUN   TestAccPagerDutyService_BasicWithIncidentUrgencyRules
--- PASS: TestAccPagerDutyService_BasicWithIncidentUrgencyRules (13.94s)
PASS
ok  	github.com/terraform-providers/terraform-provider-pagerduty/pagerduty	28.738s

Copy link
Collaborator

@heimweh heimweh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This LGTM 👍

@stmcallister stmcallister merged commit 974b486 into PagerDuty:master Mar 18, 2020
stmcallister pushed a commit that referenced this pull request Mar 19, 2020
adding PRs #188 and #190.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants