{"action":"closed","number":71,"pull_request":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71","id":28250358,"html_url":"https://github.com/itamae-kitchen/itamae/pull/71","diff_url":"https://github.com/itamae-kitchen/itamae/pull/71.diff","patch_url":"https://github.com/itamae-kitchen/itamae/pull/71.patch","issue_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/71","number":71,"state":"closed","locked":false,"title":"Make `node` handle NameError from host_inventory","user":{"login":"nownabe","id":1286807,"avatar_url":"https://avatars.githubusercontent.com/u/1286807?v=3","gravatar_id":"","url":"https://api.github.com/users/nownabe","html_url":"https://github.com/nownabe","followers_url":"https://api.github.com/users/nownabe/followers","following_url":"https://api.github.com/users/nownabe/following{/other_user}","gists_url":"https://api.github.com/users/nownabe/gists{/gist_id}","starred_url":"https://api.github.com/users/nownabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nownabe/subscriptions","organizations_url":"https://api.github.com/users/nownabe/orgs","repos_url":"https://api.github.com/users/nownabe/repos","events_url":"https://api.github.com/users/nownabe/events{/privacy}","received_events_url":"https://api.github.com/users/nownabe/received_events","type":"User","site_admin":false},"body":"I found two errors of `node`.\r\n\r\nFirst one is as follows.\r\nIt is found with `node[\"undefined\"]`:\r\n\r\n```\r\n/Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/specinfra-2.12.1/lib/specinfra/host_inventory.rb:22:in `const_get': uninitialized constant Undefined (NameError)\r\n\tfrom /Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/specinfra-2.12.1/lib/specinfra/host_inventory.rb:22:in `[]'\r\n\tfrom /Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/itamae-1.1.3/lib/itamae/node.rb:19:in `[]'\r\n\tfrom /Users/nownabe/itamae-test/recipe.rb:1:in `initialize'\r\n```\r\n\r\nSecond one is as follows.\r\nIt is found with `node[\"un-defined\"]`:\r\n\r\n```\r\n/Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/specinfra-2.12.1/lib/specinfra/host_inventory.rb:22:in `const_get': wrong constant name Un-defined (NameError)\r\n\tfrom /Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/specinfra-2.12.1/lib/specinfra/host_inventory.rb:22:in `[]'\r\n\tfrom /Users/nownabe/itamae-test/vendor/bundle/ruby/2.2.0/gems/itamae-1.1.3/lib/itamae/node.rb:19:in `[]'\r\n\tfrom /Users/nownabe/itamae-test/recipe.rb:1:in `initialize'\r\n```","created_at":"2015-01-29T03:02:52Z","updated_at":"2015-01-29T05:39:41Z","closed_at":"2015-01-29T05:39:41Z","merged_at":"2015-01-29T05:39:41Z","merge_commit_sha":"97ef1afc1e57426a72c6118b1ead2cdbf1bb0c4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71/commits","review_comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71/comments","review_comment_url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/comments/{number}","comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/71/comments","statuses_url":"https://api.github.com/repos/itamae-kitchen/itamae/statuses/51b411c9e8c07424d0b8f0ee5bef9e3e32b3ac27","head":{"label":"nownabe:hotfix/handle_host_inventory_error","ref":"hotfix/handle_host_inventory_error","sha":"51b411c9e8c07424d0b8f0ee5bef9e3e32b3ac27","user":{"login":"nownabe","id":1286807,"avatar_url":"https://avatars.githubusercontent.com/u/1286807?v=3","gravatar_id":"","url":"https://api.github.com/users/nownabe","html_url":"https://github.com/nownabe","followers_url":"https://api.github.com/users/nownabe/followers","following_url":"https://api.github.com/users/nownabe/following{/other_user}","gists_url":"https://api.github.com/users/nownabe/gists{/gist_id}","starred_url":"https://api.github.com/users/nownabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nownabe/subscriptions","organizations_url":"https://api.github.com/users/nownabe/orgs","repos_url":"https://api.github.com/users/nownabe/repos","events_url":"https://api.github.com/users/nownabe/events{/privacy}","received_events_url":"https://api.github.com/users/nownabe/received_events","type":"User","site_admin":false},"repo":{"id":29999734,"name":"itamae","full_name":"nownabe/itamae","owner":{"login":"nownabe","id":1286807,"avatar_url":"https://avatars.githubusercontent.com/u/1286807?v=3","gravatar_id":"","url":"https://api.github.com/users/nownabe","html_url":"https://github.com/nownabe","followers_url":"https://api.github.com/users/nownabe/followers","following_url":"https://api.github.com/users/nownabe/following{/other_user}","gists_url":"https://api.github.com/users/nownabe/gists{/gist_id}","starred_url":"https://api.github.com/users/nownabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nownabe/subscriptions","organizations_url":"https://api.github.com/users/nownabe/orgs","repos_url":"https://api.github.com/users/nownabe/repos","events_url":"https://api.github.com/users/nownabe/events{/privacy}","received_events_url":"https://api.github.com/users/nownabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nownabe/itamae","description":"Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef.","fork":true,"url":"https://api.github.com/repos/nownabe/itamae","forks_url":"https://api.github.com/repos/nownabe/itamae/forks","keys_url":"https://api.github.com/repos/nownabe/itamae/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nownabe/itamae/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nownabe/itamae/teams","hooks_url":"https://api.github.com/repos/nownabe/itamae/hooks","issue_events_url":"https://api.github.com/repos/nownabe/itamae/issues/events{/number}","events_url":"https://api.github.com/repos/nownabe/itamae/events","assignees_url":"https://api.github.com/repos/nownabe/itamae/assignees{/user}","branches_url":"https://api.github.com/repos/nownabe/itamae/branches{/branch}","tags_url":"https://api.github.com/repos/nownabe/itamae/tags","blobs_url":"https://api.github.com/repos/nownabe/itamae/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nownabe/itamae/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nownabe/itamae/git/refs{/sha}","trees_url":"https://api.github.com/repos/nownabe/itamae/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nownabe/itamae/statuses/{sha}","languages_url":"https://api.github.com/repos/nownabe/itamae/languages","stargazers_url":"https://api.github.com/repos/nownabe/itamae/stargazers","contributors_url":"https://api.github.com/repos/nownabe/itamae/contributors","subscribers_url":"https://api.github.com/repos/nownabe/itamae/subscribers","subscription_url":"https://api.github.com/repos/nownabe/itamae/subscription","commits_url":"https://api.github.com/repos/nownabe/itamae/commits{/sha}","git_commits_url":"https://api.github.com/repos/nownabe/itamae/git/commits{/sha}","comments_url":"https://api.github.com/repos/nownabe/itamae/comments{/number}","issue_comment_url":"https://api.github.com/repos/nownabe/itamae/issues/comments/{number}","contents_url":"https://api.github.com/repos/nownabe/itamae/contents/{+path}","compare_url":"https://api.github.com/repos/nownabe/itamae/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nownabe/itamae/merges","archive_url":"https://api.github.com/repos/nownabe/itamae/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nownabe/itamae/downloads","issues_url":"https://api.github.com/repos/nownabe/itamae/issues{/number}","pulls_url":"https://api.github.com/repos/nownabe/itamae/pulls{/number}","milestones_url":"https://api.github.com/repos/nownabe/itamae/milestones{/number}","notifications_url":"https://api.github.com/repos/nownabe/itamae/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nownabe/itamae/labels{/name}","releases_url":"https://api.github.com/repos/nownabe/itamae/releases{/id}","created_at":"2015-01-29T02:29:17Z","updated_at":"2015-01-29T02:29:17Z","pushed_at":"2015-01-29T02:56:48Z","git_url":"git://github.com/nownabe/itamae.git","ssh_url":"git@github.com:nownabe/itamae.git","clone_url":"https://github.com/nownabe/itamae.git","svn_url":"https://github.com/nownabe/itamae","homepage":"http://itamae.kitchen/","size":1808,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"itamae-kitchen:master","ref":"master","sha":"322e8955af2f13c04d2cbd1a0a72cc6e947ad4fa","user":{"login":"itamae-kitchen","id":10345441,"avatar_url":"https://avatars.githubusercontent.com/u/10345441?v=3","gravatar_id":"","url":"https://api.github.com/users/itamae-kitchen","html_url":"https://github.com/itamae-kitchen","followers_url":"https://api.github.com/users/itamae-kitchen/followers","following_url":"https://api.github.com/users/itamae-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/itamae-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/itamae-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itamae-kitchen/subscriptions","organizations_url":"https://api.github.com/users/itamae-kitchen/orgs","repos_url":"https://api.github.com/users/itamae-kitchen/repos","events_url":"https://api.github.com/users/itamae-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/itamae-kitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":15393024,"name":"itamae","full_name":"itamae-kitchen/itamae","owner":{"login":"itamae-kitchen","id":10345441,"avatar_url":"https://avatars.githubusercontent.com/u/10345441?v=3","gravatar_id":"","url":"https://api.github.com/users/itamae-kitchen","html_url":"https://github.com/itamae-kitchen","followers_url":"https://api.github.com/users/itamae-kitchen/followers","following_url":"https://api.github.com/users/itamae-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/itamae-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/itamae-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itamae-kitchen/subscriptions","organizations_url":"https://api.github.com/users/itamae-kitchen/orgs","repos_url":"https://api.github.com/users/itamae-kitchen/repos","events_url":"https://api.github.com/users/itamae-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/itamae-kitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/itamae-kitchen/itamae","description":"Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef.","fork":false,"url":"https://api.github.com/repos/itamae-kitchen/itamae","forks_url":"https://api.github.com/repos/itamae-kitchen/itamae/forks","keys_url":"https://api.github.com/repos/itamae-kitchen/itamae/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itamae-kitchen/itamae/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itamae-kitchen/itamae/teams","hooks_url":"https://api.github.com/repos/itamae-kitchen/itamae/hooks","issue_events_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/events{/number}","events_url":"https://api.github.com/repos/itamae-kitchen/itamae/events","assignees_url":"https://api.github.com/repos/itamae-kitchen/itamae/assignees{/user}","branches_url":"https://api.github.com/repos/itamae-kitchen/itamae/branches{/branch}","tags_url":"https://api.github.com/repos/itamae-kitchen/itamae/tags","blobs_url":"https://api.github.com/repos/itamae-kitchen/itamae/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itamae-kitchen/itamae/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itamae-kitchen/itamae/git/refs{/sha}","trees_url":"https://api.github.com/repos/itamae-kitchen/itamae/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itamae-kitchen/itamae/statuses/{sha}","languages_url":"https://api.github.com/repos/itamae-kitchen/itamae/languages","stargazers_url":"https://api.github.com/repos/itamae-kitchen/itamae/stargazers","contributors_url":"https://api.github.com/repos/itamae-kitchen/itamae/contributors","subscribers_url":"https://api.github.com/repos/itamae-kitchen/itamae/subscribers","subscription_url":"https://api.github.com/repos/itamae-kitchen/itamae/subscription","commits_url":"https://api.github.com/repos/itamae-kitchen/itamae/commits{/sha}","git_commits_url":"https://api.github.com/repos/itamae-kitchen/itamae/git/commits{/sha}","comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/comments{/number}","issue_comment_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/comments/{number}","contents_url":"https://api.github.com/repos/itamae-kitchen/itamae/contents/{+path}","compare_url":"https://api.github.com/repos/itamae-kitchen/itamae/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itamae-kitchen/itamae/merges","archive_url":"https://api.github.com/repos/itamae-kitchen/itamae/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itamae-kitchen/itamae/downloads","issues_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues{/number}","pulls_url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls{/number}","milestones_url":"https://api.github.com/repos/itamae-kitchen/itamae/milestones{/number}","notifications_url":"https://api.github.com/repos/itamae-kitchen/itamae/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itamae-kitchen/itamae/labels{/name}","releases_url":"https://api.github.com/repos/itamae-kitchen/itamae/releases{/id}","created_at":"2013-12-23T10:30:26Z","updated_at":"2015-01-28T10:35:38Z","pushed_at":"2015-01-29T05:39:41Z","git_url":"git://github.com/itamae-kitchen/itamae.git","ssh_url":"git@github.com:itamae-kitchen/itamae.git","clone_url":"https://github.com/itamae-kitchen/itamae.git","svn_url":"https://github.com/itamae-kitchen/itamae","homepage":"http://itamae.kitchen/","size":1808,"stargazers_count":189,"watchers_count":189,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":7,"forks":18,"open_issues":7,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71"},"html":{"href":"https://github.com/itamae-kitchen/itamae/pull/71"},"issue":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/issues/71"},"comments":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/itamae-kitchen/itamae/statuses/51b411c9e8c07424d0b8f0ee5bef9e3e32b3ac27"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ryotarai","id":706434,"avatar_url":"https://avatars.githubusercontent.com/u/706434?v=3","gravatar_id":"","url":"https://api.github.com/users/ryotarai","html_url":"https://github.com/ryotarai","followers_url":"https://api.github.com/users/ryotarai/followers","following_url":"https://api.github.com/users/ryotarai/following{/other_user}","gists_url":"https://api.github.com/users/ryotarai/gists{/gist_id}","starred_url":"https://api.github.com/users/ryotarai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryotarai/subscriptions","organizations_url":"https://api.github.com/users/ryotarai/orgs","repos_url":"https://api.github.com/users/ryotarai/repos","events_url":"https://api.github.com/users/ryotarai/events{/privacy}","received_events_url":"https://api.github.com/users/ryotarai/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":3}}