payload: {"action":"created","issue":{"url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/98","repository_url":"https://api.github.com/repos/vultr/terraform-provider-vultr","labels_url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/98/comments","events_url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/98/events","html_url":"https://github.com/vultr/terraform-provider-vultr/issues/98","id":477702331,"node_id":"MDU6SXNzdWU0Nzc3MDIzMzE=","number":98,"title":"remote-exec ssh host not populated","user":{"login":"hadleyrich","id":816757,"node_id":"MDQ6VXNlcjgxNjc1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/816757?v=4","gravatar_id":"","url":"https://api.github.com/users/hadleyrich","html_url":"https://github.com/hadleyrich","followers_url":"https://api.github.com/users/hadleyrich/followers","following_url":"https://api.github.com/users/hadleyrich/following{/other_user}","gists_url":"https://api.github.com/users/hadleyrich/gists{/gist_id}","starred_url":"https://api.github.com/users/hadleyrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadleyrich/subscriptions","organizations_url":"https://api.github.com/users/hadleyrich/orgs","repos_url":"https://api.github.com/users/hadleyrich/repos","events_url":"https://api.github.com/users/hadleyrich/events{/privacy}","received_events_url":"https://api.github.com/users/hadleyrich/received_events","type":"User","site_admin":false},"labels":[{"id":1433028531,"node_id":"MDU6TGFiZWwxNDMzMDI4NTMx","url":"https://api.github.com/repos/vultr/terraform-provider-vultr/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":{"login":"ddymko","id":1588386,"node_id":"MDQ6VXNlcjE1ODgzODY=","avatar_url":"https://avatars2.githubusercontent.com/u/1588386?v=4","gravatar_id":"","url":"https://api.github.com/users/ddymko","html_url":"https://github.com/ddymko","followers_url":"https://api.github.com/users/ddymko/followers","following_url":"https://api.github.com/users/ddymko/following{/other_user}","gists_url":"https://api.github.com/users/ddymko/gists{/gist_id}","starred_url":"https://api.github.com/users/ddymko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddymko/subscriptions","organizations_url":"https://api.github.com/users/ddymko/orgs","repos_url":"https://api.github.com/users/ddymko/repos","events_url":"https://api.github.com/users/ddymko/events{/privacy}","received_events_url":"https://api.github.com/users/ddymko/received_events","type":"User","site_admin":false},"assignees":[{"login":"ddymko","id":1588386,"node_id":"MDQ6VXNlcjE1ODgzODY=","avatar_url":"https://avatars2.githubusercontent.com/u/1588386?v=4","gravatar_id":"","url":"https://api.github.com/users/ddymko","html_url":"https://github.com/ddymko","followers_url":"https://api.github.com/users/ddymko/followers","following_url":"https://api.github.com/users/ddymko/following{/other_user}","gists_url":"https://api.github.com/users/ddymko/gists{/gist_id}","starred_url":"https://api.github.com/users/ddymko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddymko/subscriptions","organizations_url":"https://api.github.com/users/ddymko/orgs","repos_url":"https://api.github.com/users/ddymko/repos","events_url":"https://api.github.com/users/ddymko/events{/privacy}","received_events_url":"https://api.github.com/users/ddymko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2019-08-07T04:33:43Z","updated_at":"2019-08-07T18:46:51Z","closed_at":"2019-08-07T18:46:51Z","author_association":"NONE","body":"When adding a remote-exec to a config it's acutally executed on the localhost as the host field is not populated:\r\n\r\n```\r\nresource \"vultr_server\" \"this\" {\r\n  label       = var.server_name\r\n  plan_id     = \"${data.vultr_plan.starter.id}\"\r\n  os_id       = \"${data.vultr_os.ubuntu-1904.id}\"\r\n  region_id   = \"${data.vultr_region.sydney.id}\"\r\n  ssh_key_ids = var.ssh_key_ids\r\n  provisioner \"remote-exec\" {\r\n    inline     = [\r\n      \"apt update\",\r\n      \"apt -y dist-upgrade\",\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nSome output:\r\n\r\n```\r\nmodule.vultr_server_testypants2.vultr_server.this: Still creating... [1m30s elapsed]\r\nmodule.vultr_server_testypants1.vultr_server.this: Still creating... [1m30s elapsed]\r\nmodule.vultr_server_testypants2.vultr_server.this: Provisioning with 'remote-exec'...\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec): Connecting to remote host via SSH...\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   Host:\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   User: root\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   Password: false\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   Private key: false\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   Certificate: false\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   SSH Agent: true\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec):   Checking Host Key: false\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec): Connected!\r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec): \r\nmodule.vultr_server_testypants2.vultr_server.this (remote-exec): 0% [Working]\r\n```\r\n\r\nThe reason it shows connected there is because I can SSH to my localhost."},"comment":{"url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/comments/519222719","html_url":"https://github.com/vultr/terraform-provider-vultr/issues/98#issuecomment-519222719","issue_url":"https://api.github.com/repos/vultr/terraform-provider-vultr/issues/98","id":519222719,"node_id":"MDEyOklzc3VlQ29tbWVudDUxOTIyMjcxOQ==","user":{"login":"hadleyrich","id":816757,"node_id":"MDQ6VXNlcjgxNjc1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/816757?v=4","gravatar_id":"","url":"https://api.github.com/users/hadleyrich","html_url":"https://github.com/hadleyrich","followers_url":"https://api.github.com/users/hadleyrich/followers","following_url":"https://api.github.com/users/hadleyrich/following{/other_user}","gists_url":"https://api.github.com/users/hadleyrich/gists{/gist_id}","starred_url":"https://api.github.com/users/hadleyrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadleyrich/subscriptions","organizations_url":"https://api.github.com/users/hadleyrich/orgs","repos_url":"https://api.github.com/users/hadleyrich/repos","events_url":"https://api.github.com/users/hadleyrich/events{/privacy}","received_events_url":"https://api.github.com/users/hadleyrich/received_events","type":"User","site_admin":false},"created_at":"2019-08-07T18:46:51Z","updated_at":"2019-08-07T18:46:51Z","author_association":"NONE","body":"Thanks for the replies guys. I guess not a bug then, I had assumed that the provider would specify it."}}
other: {"actor":{"display_login":"hadleyrich"}}