{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/5094","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/5094/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/5094/comments","events_url":"https://api.github.com/repos/chef/chef/issues/5094/events","html_url":"https://github.com/chef/chef/issues/5094","id":164521662,"number":5094,"title":"_unless attribute methods broken in chef 12.12.13","user":{"login":"acondrat","id":7072575,"avatar_url":"https://avatars.githubusercontent.com/u/7072575?v=3","gravatar_id":"","url":"https://api.github.com/users/acondrat","html_url":"https://github.com/acondrat","followers_url":"https://api.github.com/users/acondrat/followers","following_url":"https://api.github.com/users/acondrat/following{/other_user}","gists_url":"https://api.github.com/users/acondrat/gists{/gist_id}","starred_url":"https://api.github.com/users/acondrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acondrat/subscriptions","organizations_url":"https://api.github.com/users/acondrat/orgs","repos_url":"https://api.github.com/users/acondrat/repos","events_url":"https://api.github.com/users/acondrat/events{/privacy}","received_events_url":"https://api.github.com/users/acondrat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-07-08T12:35:45Z","updated_at":"2016-07-08T17:39:08Z","closed_at":null,"body":"## Description\r\n\r\n_unless attribute methods broken in chef 12.12.13\r\n\r\n## Chef Version\r\n\r\n12.12.13\r\n\r\n## Platform Version\r\n\r\nCentos 6, Centos 7\r\n\r\n## Replication Case\r\n\r\n$ git clone https://github.com/acondrat/chef-12.12.13-issue\r\n$ cd chef-12.12.13-issue/wrappercookbook/\r\n$ bundle\r\n$ kitchen converge\r\n\r\nThere are two test kitchen instances:\r\ndefault-centos-chef-121118 - converged successful\r\ndefault-centos-chef-121213 - failed\r\n"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/231423958","html_url":"https://github.com/chef/chef/issues/5094#issuecomment-231423958","issue_url":"https://api.github.com/repos/chef/chef/issues/5094","id":231423958,"user":{"login":"btm","id":4381,"avatar_url":"https://avatars.githubusercontent.com/u/4381?v=3","gravatar_id":"","url":"https://api.github.com/users/btm","html_url":"https://github.com/btm","followers_url":"https://api.github.com/users/btm/followers","following_url":"https://api.github.com/users/btm/following{/other_user}","gists_url":"https://api.github.com/users/btm/gists{/gist_id}","starred_url":"https://api.github.com/users/btm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btm/subscriptions","organizations_url":"https://api.github.com/users/btm/orgs","repos_url":"https://api.github.com/users/btm/repos","events_url":"https://api.github.com/users/btm/events{/privacy}","received_events_url":"https://api.github.com/users/btm/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T17:39:08Z","updated_at":"2016-07-08T17:39:08Z","body":"this is closer:\r\n```\r\ndiff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb\r\nindex 09c78c6..ca96c37 100644\r\n--- a/lib/chef/node/attribute.rb\r\n+++ b/lib/chef/node/attribute.rb\r\n@@ -428,18 +428,22 @@ class Chef\r\n       end\r\n \r\n       def write(level, *args, &block)\r\n+        @top_level_breadcrumb = nil\r\n         self.send(level).write(*args, &block)\r\n       end\r\n \r\n       def write!(level, *args, &block)\r\n+        @top_level_breadcrumb = nil\r\n         self.send(level).write!(*args, &block)\r\n       end\r\n \r\n       def unlink(level, *path)\r\n+        @top_level_breadcrumb = nil\r\n         self.send(level).unlink(*path)\r\n       end\r\n \r\n       def unlink!(level, *path)\r\n+        @top_level_breadcrumb = nil\r\n         self.send(level).unlink!(*path)\r\n       end\r\n```"}}
{"actor":{"display_login":"btm"}}