{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3768","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3768/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3768/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3768/events","html_url":"https://github.com/hashicorp/terraform/pull/3768","id":115302399,"number":3768,"title":"provider/digitalocean: Fixing the DigitalOcean Droplet 404 potential on refresh of state","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/digitalocean","name":"provider/digitalocean","color":"bfdadc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/waiting-response","name":"waiting-response","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T15:01:56Z","updated_at":"2015-11-05T16:24:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/3768","html_url":"https://github.com/hashicorp/terraform/pull/3768","diff_url":"https://github.com/hashicorp/terraform/pull/3768.diff","patch_url":"https://github.com/hashicorp/terraform/pull/3768.patch"},"body":"Fixes #3670\r\n\r\nChanging the DigitalOcean Droplet resource to use the new SDK message response when a Droplet isn't found\r\n\r\nCurrent behavious in master:\r\n\r\n```\r\ndigitalocean_droplet.foobar: Refreshing state... (ID: 8624387)\r\nError refreshing state: 1 error(s) occurred:\r\n\r\n* digitalocean_droplet.foobar: Error retrieving droplet: GET https://api.digitalocean.com/v2/droplets/8624387: 404 The resource you were accessing could not be found.\r\n```\r\n\r\nThen changing the code to cater for the new API lets me do the following:\r\n\r\n```\r\nterraform refresh\r\ndigitalocean_droplet.foobar: Refreshing state... (ID: 8624387)\r\nbin % terraform plan\r\nRefreshing Terraform state prior to plan...\r\n\r\n\r\nThe Terraform execution plan has been generated and is shown below.\r\nResources are shown in alphabetical order for quick scanning. Green resources\r\nwill be created (or destroyed and then created if an existing resource\r\nexists), yellow resources are being changed in-place, and red resources\r\nwill be destroyed.\r\n\r\nNote: You didn't specify an \"-out\" parameter to save this plan, so when\r\n\"apply\" is called, Terraform can't guarantee this is what will execute.\r\n\r\n+ digitalocean_droplet.foobar\r\n    image:                \"\" => \"centos-5-8-x32\"\r\n    ipv4_address:         \"\" => \"<computed>\"\r\n    ipv4_address_private: \"\" => \"<computed>\"\r\n    ipv6_address:         \"\" => \"<computed>\"\r\n    ipv6_address_private: \"\" => \"<computed>\"\r\n    locked:               \"\" => \"<computed>\"\r\n    name:                 \"\" => \"foo\"\r\n    region:               \"\" => \"nyc3\"\r\n    size:                 \"\" => \"512mb\"\r\n    status:               \"\" => \"<computed>\"\r\n    user_data:            \"\" => \"foobar\"\r\n\r\n\r\nPlan: 1 to add, 0 to change, 0 to destroy.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/154111349","html_url":"https://github.com/hashicorp/terraform/pull/3768#issuecomment-154111349","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3768","id":154111349,"user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T16:24:11Z","updated_at":"2015-11-05T16:24:11Z","body":"@catsby testing this now..."}}