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

Terraform show 0.7 panic on lists #7080

Closed
sethvargo opened this issue Jun 8, 2016 · 2 comments
Closed

Terraform show 0.7 panic on lists #7080

sethvargo opened this issue Jun 8, 2016 · 2 comments

Comments

@sethvargo
Copy link
Contributor

Hi there,

Terraform Version

Terraform v0.7.0-rc1 (301da85)

Affected Resource(s)

  • core

Terraform Configuration Files

resource "aws_instance" "web" {
  count = "2"

  ami           = "ami-db24d8b6"
  instance_type = "t2.micro"

  subnet_id              = "subnet-..."
  vpc_security_group_ids = ["sg-..."]
}

output "public_ip" {
  value = ["${aws_instance.web.*.public_ip}"]
}

output "public_dns" {
  value = ["${aws_instance.web.*.public_dns}"]
}

Debug Output

https://gist.github.com/sethvargo/79b1ec372036d073d29e587f1616a839

Panic Output

Interestingly, it says panic, but doesn't actually panic.

Expected Behavior

I should have seen list output at the end of terraform show.

Actual Behavior

I saw a panic message.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform show

Important Factoids

  • Using output that is a slice

/cc @jen20

@radeksimko
Copy link
Member

I just verified using the config you provided above that this is already fixed in master, closing as a duplicate of #6931 which was fixed via #6958 😉

@ghost
Copy link

ghost commented Apr 25, 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 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 Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants