{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/18416","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/18416/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/18416/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/18416/events","html_url":"https://github.com/hashicorp/terraform/issues/18416","id":339402197,"node_id":"MDU6SXNzdWUzMzk0MDIxOTc=","number":18416,"title":"terraform provider docker: parse: invalid character \"{\" in host name","user":{"login":"haai","id":1422735,"node_id":"MDQ6VXNlcjE0MjI3MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1422735?v=4","gravatar_id":"","url":"https://api.github.com/users/haai","html_url":"https://github.com/haai","followers_url":"https://api.github.com/users/haai/followers","following_url":"https://api.github.com/users/haai/following{/other_user}","gists_url":"https://api.github.com/users/haai/gists{/gist_id}","starred_url":"https://api.github.com/users/haai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haai/subscriptions","organizations_url":"https://api.github.com/users/haai/orgs","repos_url":"https://api.github.com/users/haai/repos","events_url":"https://api.github.com/users/haai/events{/privacy}","received_events_url":"https://api.github.com/users/haai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T10:59:21Z","updated_at":"2018-07-09T22:12:51Z","closed_at":null,"author_association":"NONE","body":"Terraform complains that it could not parse the docker hostname when the hostname contains a variable substitution, which worked with the old plugin.\r\n\r\n\r\n\r\n### Terraform Version\r\n<!---\r\nRun `terraform -v` to show the version, and paste the result between the ``` marks below.\r\n\r\nIf you are not running the latest version of Terraform, please try upgrading because your issue may have already been fixed.\r\n-->\r\n```\r\nTerraform v0.11.7\r\n+ provider.docker v1.0.0\r\n```\r\n\r\n\r\n\r\n### Expected Behavior\r\nIt should work :)\r\n\r\n\r\n\r\n### Actual Behavior\r\n```\r\n$ terraform plan\r\nRefreshing Terraform state in-memory prior to plan...\r\nThe refreshed state will be used to calculate this plan, but will not be\r\npersisted to local or remote state storage.\r\n\r\n\r\nError: Error refreshing state: 1 error(s) occurred:\r\n\r\n* provider.docker: Error initializing Docker client: parse tcp://${var.docker_host}:2375/: invalid character \"{\" in host name\r\n```\r\n\r\n### Steps to Reproduce\r\nUse docker plugin and a provider with\r\n```\r\nprovider \"docker\" {\r\n  host = \"tcp://${var.docker_endpoint}/\"\r\n}\r\n```\r\n\r\n### Notes\r\nIt seemed to work with the old plugin\r\n```\r\nTerraform v0.11.7\r\n+ provider.docker v0.1.1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/403637013","html_url":"https://github.com/hashicorp/terraform/issues/18416#issuecomment-403637013","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/18416","id":403637013,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzYzNzAxMw==","user":{"login":"apparentlymart","id":20180,"node_id":"MDQ6VXNlcjIwMTgw","avatar_url":"https://avatars1.githubusercontent.com/u/20180?v=4","gravatar_id":"","url":"https://api.github.com/users/apparentlymart","html_url":"https://github.com/apparentlymart","followers_url":"https://api.github.com/users/apparentlymart/followers","following_url":"https://api.github.com/users/apparentlymart/following{/other_user}","gists_url":"https://api.github.com/users/apparentlymart/gists{/gist_id}","starred_url":"https://api.github.com/users/apparentlymart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apparentlymart/subscriptions","organizations_url":"https://api.github.com/users/apparentlymart/orgs","repos_url":"https://api.github.com/users/apparentlymart/repos","events_url":"https://api.github.com/users/apparentlymart/events{/privacy}","received_events_url":"https://api.github.com/users/apparentlymart/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T22:12:51Z","updated_at":"2018-07-09T22:12:51Z","author_association":"CONTRIBUTOR","body":"Hi @haai! Sorry for this apparent regression.\r\n\r\nIt looks like the Docker provider is attempting to process the value of the `host` argument during its validate step here, which isn't correct because validation happens before the expression has been evaluated and so it is trying to use that literal string as a URL.\r\n\r\nI'm going to have our bot move this over to the docker provider's repository, since I think the fix here will be in the provider's own code.\r\n"}}
{"actor":{"display_login":"apparentlymart"}}