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

panic: Index out of range #161

Closed
ghost opened this issue Feb 1, 2019 · 1 comment
Closed

panic: Index out of range #161

ghost opened this issue Feb 1, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 1, 2019

This issue was originally opened by @spengilley as hashicorp/terraform#20188. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

version: 0.11.11
...

Terraform Configuration Files

...
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Create a vApp
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
resource "vcd_vapp" "master" {
    name         = "master"
    depends_on   = ["vcd_network_routed.INTERNET"]
}

# * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Create a Vm
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
resource "vcd_vapp_vm" "master" {
    vapp_name     = "${vcd_vapp.master.name}"
    name          = "master"
    
    # Define the catalog and template
    catalog_name  = "VANILLA"
    template_name = "VANILLA"

    # Give the app internet access so that it can be provisioned
    # This network resource is defined in networks.tf
    network_name  = "${vcd_network_routed.INTERNET.name}"
    ip            = "192.168.30.2"
}

Crash Output

https://gist.github.com/spengilley/5e6b0210a23b6d269c0e13d253510005

Expected Behavior

Create a VM

Actual Behavior

Crashes

Steps to Reproduce

  1. terraform init
  2. terraform apply

-->

@spengilley
Copy link
Contributor

Duplicate of #157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants