Merge pull request #3879 from trondhindenes/win_fact_reboot_pending

Return reboot pending as true/false
reviewable/pr18780/r1
Matt Davis 9 years ago
commit a8072f9ef0

@ -153,6 +153,9 @@ if ($winrm_cert_expiry)
Set-Attr $result.ansible_facts "ansible_winrm_certificate_expires" $winrm_cert_expiry.NotAfter.ToString("yyyy-MM-dd HH:mm:ss")
}
$PendingReboot = Get-PendingRebootStatus
Set-Attr $result.ansible_facts "ansible_reboot_pending" $PendingReboot
# See if Facter is on the System Path
Try {
$facter_exe = Get-Command facter -ErrorAction Stop

Loading…
Cancel
Save