{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3897","labels_url":"https://api.github.com/repos/chef/chef/issues/3897/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3897/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3897/events","html_url":"https://github.com/chef/chef/issues/3897","id":105489148,"number":3897,"title":"12.5 regressions","user":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/chef/chef/labels/Chef%20Core","name":"Chef Core","color":"c7def8"},{"url":"https://api.github.com/repos/chef/chef/labels/Regression","name":"Regression","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/chef/chef/milestones/22","html_url":"https://github.com/chef/chef/milestones/12.5.0","labels_url":"https://api.github.com/repos/chef/chef/milestones/22/labels","id":1158794,"number":22,"title":"12.5.0","description":null,"creator":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2015-06-10T15:25:14Z","updated_at":"2015-09-17T18:57:02Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-09-08T23:36:45Z","updated_at":"2015-09-17T18:57:02Z","closed_at":"2015-09-17T18:57:02Z","body":"While trying to test @lamont-granquist 's new attribute code, I also was playing around with 12.5 current and noticed that code we have in a provider that does:\r\n\r\n```\r\ndef load_current_resource\r\n  @current_resource.foo = false\r\nend\r\n...\r\n\r\naction :foo do\r\n  execute 'something' do\r\n    only_if { current_resource.foo }\r\n  end\r\nend\r\n```\r\n\r\nFails with `undefined method 'foo' for nil:NilClass` - but works in 12.4.1\r\n\r\n"}}