{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/1982","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/1982/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/1982/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/1982/events","html_url":"https://github.com/chef/inspec/issues/1982","id":240154133,"number":1982,"title":"Incompatible with PowerShell 2.0","user":{"login":"s1mark","id":17269755,"avatar_url":"https://avatars2.githubusercontent.com/u/17269755?v=3","gravatar_id":"","url":"https://api.github.com/users/s1mark","html_url":"https://github.com/s1mark","followers_url":"https://api.github.com/users/s1mark/followers","following_url":"https://api.github.com/users/s1mark/following{/other_user}","gists_url":"https://api.github.com/users/s1mark/gists{/gist_id}","starred_url":"https://api.github.com/users/s1mark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1mark/subscriptions","organizations_url":"https://api.github.com/users/s1mark/orgs","repos_url":"https://api.github.com/users/s1mark/repos","events_url":"https://api.github.com/users/s1mark/events{/privacy}","received_events_url":"https://api.github.com/users/s1mark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-03T12:11:07Z","updated_at":"2017-07-05T19:28:21Z","closed_at":"2017-07-05T19:28:21Z","body":"### Description\r\n\r\nInspec is incompatible with PowerShell 2.0 due to the lack of `ConvertTo-Json` cmdlet.\r\nThe behavior of inspec on PowerShell 2.0 is misleading because it returns a null instead of error.\r\n\r\n### InSpec and Platform Version\r\n\r\n`inspec-1.20.0-1.sles12.x86_64`\r\n\r\n### Replication Case\r\n\r\nAll inspec resources that utilize `ConvertTo-Json` cmdlet\r\n\r\n### Possible Solutions\r\n\r\nCreating a custom helper script that converts PSObjects into json format which can be used if `$PSVersionTable['PSVersion'].major -eq 2`\r\n"}}
{"actor":{"display_login":"chris-rock"}}