{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/12833","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/12833/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/12833/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/12833/events","html_url":"https://github.com/hashicorp/terraform/issues/12833","id":215129267,"number":12833,"title":"Terraform 0.9.0 panic using NS1 provider","user":{"login":"kian","id":111619,"avatar_url":"https://avatars1.githubusercontent.com/u/111619?v=3","gravatar_id":"","url":"https://api.github.com/users/kian","html_url":"https://github.com/kian","followers_url":"https://api.github.com/users/kian/followers","following_url":"https://api.github.com/users/kian/following{/other_user}","gists_url":"https://api.github.com/users/kian/gists{/gist_id}","starred_url":"https://api.github.com/users/kian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kian/subscriptions","organizations_url":"https://api.github.com/users/kian/orgs","repos_url":"https://api.github.com/users/kian/repos","events_url":"https://api.github.com/users/kian/events{/privacy}","received_events_url":"https://api.github.com/users/kian/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":524929235,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/ns1","name":"provider/ns1","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-17T21:41:03Z","updated_at":"2017-03-23T10:00:57Z","closed_at":"2017-03-23T10:00:57Z","body":"Hello,\r\n\r\nI'm attempting to use the new NS1 provider with Terraform 0.9.0 but the process crashes.\r\n\r\n```\r\npanic: runtime error: integer divide by zero\r\n```\r\n\r\n### Terraform Version\r\n\r\n```\r\n$ terraform --version\r\nTerraform v0.9.0\r\n```\r\n\r\n### Affected Resource(s)\r\n\r\n - `ns1_zone`\r\n\r\nMay affect other resources too but I can't create the zone initially, so not sure.\r\n\r\n### Terraform Configuration Files\r\n\r\n**foo.tf:**\r\n```hcl\r\nprovider \"ns1\" {\r\n  apikey   = \"${var.ns1_apikey}\"\r\n  endpoint = \"${var.ns1_endpoint}\"\r\n}\r\n\r\nresource \"ns1_zone\" \"placelocaldevcom\" {\r\n  zone    = \"placelocaldev.com\"\r\n  ttl     = 3600\r\n  refresh = 3600\r\n  retry   = 600\r\n  expiry  = 604800\r\n  nx_ttl  = 3600\r\n}\r\n```\r\n\r\n**terraform.tfvars:**\r\n\r\n```\r\nns1_apikey = \"<redacted>\"\r\n```\r\n\r\n**variables.tf**\r\n```\r\nvariable \"ns1_apikey\" {}\r\n\r\nvariable \"ns1_endpoint\" {\r\n  type    = \"string\"\r\n  default = \"https://api.nsone.net/v1\"\r\n}\r\n```\r\n\r\n### Debug Output\r\n\r\nCreated with `export TF_LOG=DEBUG; export TF_LOG_PATH=/tmp/tf-debug.log`.\r\n\r\nhttps://gist.github.com/kian/6491f1b27dffb6e16137703e1febe43b\r\n\r\n### Panic Output\r\n\r\n`crash.log` contents: https://gist.github.com/kian/1fca5151447a3afef7f15dc861edc5f8\r\n\r\n### Expected Behavior\r\n\r\nThe zone exists, so I'd expect a no-op but anything other than a crash.\r\n\r\n### Actual Behavior\r\n\r\nCrash.\r\n\r\n### Steps to Reproduce\r\n\r\n1. `terraform apply`\r\n\r\n### Misc\r\n\r\nHappy to help test patches."}}
{"actor":{"display_login":"stack72"}}