{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2568","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2568/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2568/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2568/events","html_url":"https://github.com/mitchellh/packer/pull/2568","id":99557706,"number":2568,"title":"Add reboot checks before moving out of the reboot sequence for WinRM","user":{"login":"pecigonzalo","id":9908105,"avatar_url":"https://avatars.githubusercontent.com/u/9908105?v=3","gravatar_id":"","url":"https://api.github.com/users/pecigonzalo","html_url":"https://github.com/pecigonzalo","followers_url":"https://api.github.com/users/pecigonzalo/followers","following_url":"https://api.github.com/users/pecigonzalo/following{/other_user}","gists_url":"https://api.github.com/users/pecigonzalo/gists{/gist_id}","starred_url":"https://api.github.com/users/pecigonzalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecigonzalo/subscriptions","organizations_url":"https://api.github.com/users/pecigonzalo/orgs","repos_url":"https://api.github.com/users/pecigonzalo/repos","events_url":"https://api.github.com/users/pecigonzalo/events{/privacy}","received_events_url":"https://api.github.com/users/pecigonzalo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/provisioner/winrm","name":"provisioner/winrm","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mitchellh/packer/milestones/10","html_url":"https://github.com/mitchellh/packer/milestones/upcoming","labels_url":"https://api.github.com/repos/mitchellh/packer/milestones/10/labels","id":1234511,"number":10,"title":"upcoming","description":"Something after 0.8.3.","creator":{"login":"cbednarski","id":649798,"avatar_url":"https://avatars.githubusercontent.com/u/649798?v=3","gravatar_id":"","url":"https://api.github.com/users/cbednarski","html_url":"https://github.com/cbednarski","followers_url":"https://api.github.com/users/cbednarski/followers","following_url":"https://api.github.com/users/cbednarski/following{/other_user}","gists_url":"https://api.github.com/users/cbednarski/gists{/gist_id}","starred_url":"https://api.github.com/users/cbednarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbednarski/subscriptions","organizations_url":"https://api.github.com/users/cbednarski/orgs","repos_url":"https://api.github.com/users/cbednarski/repos","events_url":"https://api.github.com/users/cbednarski/events{/privacy}","received_events_url":"https://api.github.com/users/cbednarski/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2015-07-31T02:59:40Z","updated_at":"2015-08-12T22:11:57Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-08-07T01:37:10Z","updated_at":"2015-08-18T22:54:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mitchellh/packer/pulls/2568","html_url":"https://github.com/mitchellh/packer/pull/2568","diff_url":"https://github.com/mitchellh/packer/pull/2568.diff","patch_url":"https://github.com/mitchellh/packer/pull/2568.patch"},"body":"Stole the WinRM Reboot functionality from Vagrant to check when the reboot has finished or not. This will prevent a provisioner following the reboot provisioner to try and provision mid reboot, and avoids having to put aleatory wait times for the next provisioner.\r\n\r\nPlease let me know of any other way we can improve this.\r\nAs a future request im planing on implementing the way MS does it on top of this one. Basically check the last BootUpTime before and after reboot using:\r\n```\r\n(Get-WmiObject win32_operatingsystem).LastBootUpTime\r\n```\r\nAnd only say it finished after the 2 do not match. Otherwise wait or timeout."},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/132383576","html_url":"https://github.com/mitchellh/packer/pull/2568#issuecomment-132383576","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2568","id":132383576,"user":{"login":"cbednarski","id":649798,"avatar_url":"https://avatars.githubusercontent.com/u/649798?v=3","gravatar_id":"","url":"https://api.github.com/users/cbednarski","html_url":"https://github.com/cbednarski","followers_url":"https://api.github.com/users/cbednarski/followers","following_url":"https://api.github.com/users/cbednarski/following{/other_user}","gists_url":"https://api.github.com/users/cbednarski/gists{/gist_id}","starred_url":"https://api.github.com/users/cbednarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbednarski/subscriptions","organizations_url":"https://api.github.com/users/cbednarski/orgs","repos_url":"https://api.github.com/users/cbednarski/repos","events_url":"https://api.github.com/users/cbednarski/events{/privacy}","received_events_url":"https://api.github.com/users/cbednarski/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T22:54:29Z","updated_at":"2015-08-18T22:54:29Z","body":"@pecigonzalo :+1: thanks for working on this."}}