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

r/aws_network_interface: Add an update check #11277

Merged
merged 2 commits into from
Dec 13, 2019
Merged

r/aws_network_interface: Add an update check #11277

merged 2 commits into from
Dec 13, 2019

Conversation

nozaq
Copy link

@nozaq nozaq commented Dec 12, 2019

Do not call ec2:ModifyNetworkInterfaceAttribute when arguments are not
changed.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #11273

Release note for CHANGELOG:

resource/aws_network_interface: Do not call ec2:ModifyNetworkInterfaceAttribute when arguments are not changed.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSENI_sourceDestCheck'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -count 1 -parallel 20 -run=TestAccAWSENI_sourceDestCheck -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSENI_sourceDestCheck
=== PAUSE TestAccAWSENI_sourceDestCheck
=== CONT  TestAccAWSENI_sourceDestCheck
--- PASS: TestAccAWSENI_sourceDestCheck (65.85s)
PASS                                                             
ok      github.com/terraform-providers/terraform-provider-aws/aws       65.882s
testing: warning: no tests to run                                
PASS                                                             
ok      github.com/terraform-providers/terraform-provider-aws/aws/internal/flatmap      0.032s [no tests to run]
testing: warning: no tests to run                                                                                                 
PASS                                                             
ok      github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags 0.005s [no tests to run]

Do not call ec2:ModifyNetworkInterfaceAttribute when arguments are not
changed.
@nozaq nozaq requested a review from a team December 12, 2019 23:37
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR. labels Dec 12, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Hi @nozaq 👋 Thank you for submitting this. This appears to be the correct fix in this case, just one small typo fix and we should be able to get this in. 👍

aws/resource_aws_network_interface.go Outdated Show resolved Hide resolved
@bflad bflad added bug Addresses a defect in current functionality. waiting-response Maintainers are waiting on response from community or contributor. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 13, 2019
@bflad bflad removed the waiting-response Maintainers are waiting on response from community or contributor. label Dec 13, 2019
@nozaq
Copy link
Author

nozaq commented Dec 13, 2019

@bflad Thanks for your review, just pushed a fix! 👍

@bflad bflad added this to the v2.42.0 milestone Dec 13, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks great, @nozaq, thanks for fixing this! 🚀

Output from acceptance testing:

--- PASS: TestAccAWSENI_computedIPs (34.67s)
--- PASS: TestAccAWSENI_sourceDestCheck (34.96s)
--- PASS: TestAccAWSENI_disappears (36.52s)
--- PASS: TestAccAWSENI_basic (39.59s)
--- PASS: TestAccAWSENI_updatedDescription (63.27s)
--- PASS: TestAccAWSENI_PrivateIpsCount (96.03s)
--- PASS: TestAccAWSENI_ignoreExternalAttachment (107.54s)
--- PASS: TestAccAWSENI_attached (242.78s)

@bflad bflad merged commit 2c2dc86 into hashicorp:master Dec 13, 2019
bflad added a commit that referenced this pull request Dec 13, 2019
@nozaq nozaq deleted the fix-11273 branch December 13, 2019 16:01
bflad added a commit that referenced this pull request Dec 13, 2019
@ghost
Copy link

ghost commented Dec 13, 2019

This has been released in version 2.42.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 28, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redundant ec2:ModifyNetworkInterfaceAttribute call when updating aws_network_interface
2 participants