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

config/configupgrade: Test to show that list unwrapping works for sets #20447

Merged
merged 1 commit into from
Feb 23, 2019

Conversation

apparentlymart
Copy link
Contributor

This was already working but we had no tests to prove it.

This for #19140, showing that it's been fixed by some other change since I verified it on v0.12.0-alpha4.

This was already working but we had no tests to prove it.
@apparentlymart apparentlymart added this to the v0.12.0 milestone Feb 23, 2019
@apparentlymart apparentlymart self-assigned this Feb 23, 2019
@apparentlymart apparentlymart requested a review from a team February 23, 2019 00:56
@apparentlymart
Copy link
Contributor Author

With a build from this branch, the example I used in #19140 now produces the expected result:

--- redundant-list-brackets.tf.orig	2019-02-22 16:54:44.606843923 -0800
+++ redundant-list-brackets.tf	2019-02-22 16:54:51.574961368 -0800
@@ -2,7 +2,7 @@
   ami           = "ami-abc123"
   instance_type = "t2.micro"
 
-  vpc_security_group_ids = ["${aws_security_group.example.*.id}"]
+  vpc_security_group_ids = aws_security_group.example.*.id
 }
 
 resource "aws_security_group" "example" {

@apparentlymart apparentlymart merged commit b217624 into master Feb 23, 2019
@pselle pselle deleted the b-configupgrade-redundant-list-with-sets branch June 25, 2019 16:34
@ghost
Copy link

ghost commented Jul 24, 2019

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants