{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1911","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1911/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1911/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1911/events","html_url":"https://github.com/hashicorp/terraform/pull/1911","id":75263656,"number":1911,"title":"provider/template: don't diff when there's no diff","user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T15:39:27Z","updated_at":"2015-05-11T15:40:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/1911","html_url":"https://github.com/hashicorp/terraform/pull/1911","diff_url":"https://github.com/hashicorp/terraform/pull/1911.diff","patch_url":"https://github.com/hashicorp/terraform/pull/1911.patch"},"body":"This reworks the template lifecycle a bit such that we get nicer diff\r\nbehavior.\r\n\r\nFirst, we tick ForceNew on for both filename and vars, so that the diff\r\nindicates that the template will be \"replaced\" on change. This is mostly\r\ncosmetic, but it also tracks conceptually with the fact that the\r\nidentifier we use is a hash of the contents, so any change essentially\r\nmakes a \"new resource\".\r\n\r\nSecond, we change the Exists implementation to only return `false` when\r\nthere has been a change in the rendered template. This lets descendent\r\nresources see the computed value changing so that they'll properly\r\ntrigger in the plan.\r\n\r\nFixes #1898\r\nRefs #1866 (but does not fix, there's another deeper issue there)"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/100949673","html_url":"https://github.com/hashicorp/terraform/pull/1911#issuecomment-100949673","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1911","id":100949673,"user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T15:40:24Z","updated_at":"2015-05-11T15:40:24Z","body":"LGTM"}}