{"action":"closed","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/279","labels_url":"https://api.github.com/repos/chef/inspec/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/279/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/279/events","html_url":"https://github.com/chef/inspec/issues/279","id":119787617,"number":279,"title":"Inspec hangs when executing some windows profiles against linux machine","user":{"login":"jcreedcmu","id":1500822,"avatar_url":"https://avatars.githubusercontent.com/u/1500822?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreedcmu","html_url":"https://github.com/jcreedcmu","followers_url":"https://api.github.com/users/jcreedcmu/followers","following_url":"https://api.github.com/users/jcreedcmu/following{/other_user}","gists_url":"https://api.github.com/users/jcreedcmu/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreedcmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreedcmu/subscriptions","organizations_url":"https://api.github.com/users/jcreedcmu/orgs","repos_url":"https://api.github.com/users/jcreedcmu/repos","events_url":"https://api.github.com/users/jcreedcmu/events{/privacy}","received_events_url":"https://api.github.com/users/jcreedcmu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/inspec/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/chef/inspec/milestones/5","html_url":"https://github.com/chef/inspec/milestones/0.9.6","labels_url":"https://api.github.com/repos/chef/inspec/milestones/5/labels","id":1439350,"number":5,"title":"0.9.6","description":"","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":0,"closed_issues":9,"state":"open","created_at":"2015-12-02T11:07:24Z","updated_at":"2015-12-11T16:44:18Z","due_on":"2015-12-10T23:00:00Z","closed_at":null},"comments":2,"created_at":"2015-12-01T19:19:50Z","updated_at":"2015-12-11T16:44:18Z","closed_at":"2015-12-11T16:44:18Z","body":"I'm not sure if this is representative of a deeper problem. In any case, if I put\r\n```ruby\r\ncontrol 'foo' do\r\n  impact 1.0\r\n  title 'abc'\r\n  desc 'def'\r\n  describe registry_key('blah') do\r\n    it { should_not exist }\r\n  end\r\nend\r\n\r\ncontrol 'bar' do\r\n  impact 1.0\r\n  title 'abc'\r\n  desc 'def'\r\n  describe audit_policy do\r\n    its('Kerberos Authentication Service') { should_not eq 'No Auditing' }\r\n  end\r\nend\r\n```\r\nin `/tmp/a.rb` and execute\r\n```shell\r\nbundle exec inspec exec  /tmp/a.rb --sudo-password vagrant  --sudo  --sudo-password 'vagrant' --host 10.0.0.101 --user vagrant --password vagrant --port 22 --backend ssh\r\n```\r\nwhere an ubuntu linux vm lives at `10.0.0.101`, then inspec appears to observe one test fail (i.e. I see an `F` appear on console) but then hangs. This hang doesn't occur if I delete either rule `foo` or rule `bar`, and it doesn't occur if I remove the `--sudo` flag."}}