{"action":"created","issue":{"url":"https://api.github.com/repos/mizzy/specinfra/issues/477","labels_url":"https://api.github.com/repos/mizzy/specinfra/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/mizzy/specinfra/issues/477/comments","events_url":"https://api.github.com/repos/mizzy/specinfra/issues/477/events","html_url":"https://github.com/mizzy/specinfra/pull/477","id":105405153,"number":477,"title":"Different host_inventory values are nil sometimes (ruby 1.8)","user":{"login":"vinzent","id":296297,"avatar_url":"https://avatars.githubusercontent.com/u/296297?v=3","gravatar_id":"","url":"https://api.github.com/users/vinzent","html_url":"https://github.com/vinzent","followers_url":"https://api.github.com/users/vinzent/followers","following_url":"https://api.github.com/users/vinzent/following{/other_user}","gists_url":"https://api.github.com/users/vinzent/gists{/gist_id}","starred_url":"https://api.github.com/users/vinzent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinzent/subscriptions","organizations_url":"https://api.github.com/users/vinzent/orgs","repos_url":"https://api.github.com/users/vinzent/repos","events_url":"https://api.github.com/users/vinzent/events{/privacy}","received_events_url":"https://api.github.com/users/vinzent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-08T15:23:54Z","updated_at":"2015-09-08T17:16:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mizzy/specinfra/pulls/477","html_url":"https://github.com/mizzy/specinfra/pull/477","diff_url":"https://github.com/mizzy/specinfra/pull/477.diff","patch_url":"https://github.com/mizzy/specinfra/pull/477.patch"},"body":"This is a work in progress.\r\n\r\nWe face a problem on CentOS6 on virtual machines that host_inventory values have random nil results.\r\n\r\nThe problem only is on virtual machines. A physical test machine did not show the behaviour.\r\n\r\nknow good version: specinfra 2.36.9, serverspec 2.19.0\r\nknown bad version: specinfra 2.43.0 serverspec 2.23.0\r\n\r\nHowto reproduce:\r\n\r\ntest spec file:\r\n```\r\nrequire 'serverspec'\r\nset :backend, :exec\r\n\r\nputs  host_inventory['platform_version']\r\nexit\r\n```\r\n\r\nexecute:\r\n\r\n```\r\nwhile true; do rspec /tmp/host_inventory_test_spec.rb; sleep 0.1; done\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\n6.7\r\n6.7\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\nnil\r\n6.7\r\nnil\r\nnil\r\nnil\r\nnil\r\n```"},"comment":{"url":"https://api.github.com/repos/mizzy/specinfra/issues/comments/138638346","html_url":"https://github.com/mizzy/specinfra/pull/477#issuecomment-138638346","issue_url":"https://api.github.com/repos/mizzy/specinfra/issues/477","id":138638346,"user":{"login":"mizzy","id":3620,"avatar_url":"https://avatars.githubusercontent.com/u/3620?v=3","gravatar_id":"","url":"https://api.github.com/users/mizzy","html_url":"https://github.com/mizzy","followers_url":"https://api.github.com/users/mizzy/followers","following_url":"https://api.github.com/users/mizzy/following{/other_user}","gists_url":"https://api.github.com/users/mizzy/gists{/gist_id}","starred_url":"https://api.github.com/users/mizzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizzy/subscriptions","organizations_url":"https://api.github.com/users/mizzy/orgs","repos_url":"https://api.github.com/users/mizzy/repos","events_url":"https://api.github.com/users/mizzy/events{/privacy}","received_events_url":"https://api.github.com/users/mizzy/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:16:33Z","updated_at":"2015-09-08T17:16:33Z","body":"At least, I cannot reproduce it in CentOS 6.5 on VirtualBox handled by Vagrant on Mac OS X.\r\n"}}