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

Small change to fix bug where only 1 tag would be created when multiple specified #9741

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

mudlark
Copy link
Contributor

@mudlark mudlark commented Aug 12, 2019

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9871

Release note for CHANGELOG:

Fixes a bug in the cloudhsm2 provider that would result in a single tag being created when multiple tags are specified.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccDataSourceCloudHsm2Cluster_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccDataSourceCloudHsm2Cluster_basic -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccDataSourceCloudHsm2Cluster_basic
--- PASS: TestAccDataSourceCloudHsm2Cluster_basic (339.65s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	340.585s
$

@mudlark mudlark requested a review from a team August 12, 2019 22:48
@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label Aug 12, 2019
@mudlark mudlark changed the title [WIP] Small change to fix bug where only 1 tag would be created when multiple specified Small change to fix bug where only 1 tag would be created when multiple specified Aug 16, 2019
@bflad bflad added bug Addresses a defect in current functionality. service/cloudhsmv2 Issues and PRs that pertain to the cloudhsmv2 service. labels Sep 24, 2019
@bflad bflad self-assigned this Sep 24, 2019
@bflad
Copy link
Contributor

bflad commented Sep 25, 2019

I have added Closes #9871 to the pull request description so it references the associated issue. This fix looks correct, however the resource itself is not performing drift detection of the tags attribute since it does not call ListTags and d.Set("tags", ...). Rather than manually implementing the new tagging logic, we can use #10018 to create the implementation for us. I have assigned this to myself to work on this immediately after that generated code is in place, which should be soon.

@ghost
Copy link

ghost commented Mar 29, 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 29, 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/cloudhsmv2 Issues and PRs that pertain to the cloudhsmv2 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.

Adding multiple tags to a cloudHSM cluster does not work
2 participants