-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_autoscaling_policy: Replace GetOk with GetOkExists #2809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atsushi-ishibashi
This looks like a reasonable patch 👍 Can you also add a test case which verifies it (i.e. config where the affected fields are undefined)?
Thanks.
I got the below error so added
|
27c48e0
to
60d9ac0
Compare
I was tempted to say that we're not really testing the new behaviour, because AWS API just doesn't return the default value ( I just rebased your branch and resolved conflicts for you, so we can 🚢 this. Thanks for the PR, as always! 👍 |
This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixed: #2528
When you specify
0
,GetOk
returns false as exists so replaced withGetOkExists
.