{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/855","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/855/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/855/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/855/events","html_url":"https://github.com/chef/inspec/issues/855","id":168846913,"number":855,"title":"Adapt InSpec to work with latest train OS updates","user":{"login":"chris-rock","id":1178413,"avatar_url":"https://avatars.githubusercontent.com/u/1178413?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-rock","html_url":"https://github.com/chris-rock","followers_url":"https://api.github.com/users/chris-rock/followers","following_url":"https://api.github.com/users/chris-rock/following{/other_user}","gists_url":"https://api.github.com/users/chris-rock/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rock/subscriptions","organizations_url":"https://api.github.com/users/chris-rock/orgs","repos_url":"https://api.github.com/users/chris-rock/repos","events_url":"https://api.github.com/users/chris-rock/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"assignees":[{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/chef/inspec/milestones/16","html_url":"https://github.com/chef/inspec/milestones/0.29.0","labels_url":"https://api.github.com/repos/chef/inspec/milestones/16/labels","id":1915862,"number":16,"title":"0.29.0","description":null,"creator":{"login":"arlimus","id":1307529,"avatar_url":"https://avatars.githubusercontent.com/u/1307529?v=3","gravatar_id":"","url":"https://api.github.com/users/arlimus","html_url":"https://github.com/arlimus","followers_url":"https://api.github.com/users/arlimus/followers","following_url":"https://api.github.com/users/arlimus/following{/other_user}","gists_url":"https://api.github.com/users/arlimus/gists{/gist_id}","starred_url":"https://api.github.com/users/arlimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arlimus/subscriptions","organizations_url":"https://api.github.com/users/arlimus/orgs","repos_url":"https://api.github.com/users/arlimus/repos","events_url":"https://api.github.com/users/arlimus/events{/privacy}","received_events_url":"https://api.github.com/users/arlimus/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":18,"state":"open","created_at":"2016-08-01T14:01:17Z","updated_at":"2016-08-05T13:38:37Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-08-02T10:06:45Z","updated_at":"2016-08-05T13:38:37Z","closed_at":"2016-08-05T13:38:37Z","body":"### Description\r\n\r\n@stevendanna introduced a couple of updates for our OS detection: https://github.com/chef/train/pull/126. This PR changes the way we get os information:\r\n\r\n```\r\n# old\r\n@platform[:family] = 'centos'\r\n\r\n# new \r\n@platform[:name] = 'centos'\r\n@platform[:family] = 'redhat'\r\n```\r\n\r\n### InSpec and Platform Version\r\n\r\nlatest\r\n\r\n### Possible Solutions\r\n\r\nWe should prefer to use dynamic methods like `inspec.os.linux?` or `inpsec.os.debian?` in our resource implementations. In addition we need to update the mock helper to reflect the changes: https://github.com/chef/inspec/blob/master/test/helper.rb#L40-L59\r\n\r\n"}}
{"actor":{"display_login":"stevendanna"}}