win_reboot - fix broken tests after recent commit (#53722)

This commit is contained in:
Jordan Borean
2019-03-13 12:24:41 +10:00
committed by GitHub
parent acdb4c3ede
commit d9795bad98

View File

@@ -78,7 +78,7 @@
ansible_password: '{{standard_pass}}'
ansible_winrm_transport: ntlm
register: fail_shutdown
failed_when: "fail_shutdown.msg != 'Reboot command failed, error was: Access is denied.(5)'"
failed_when: "'Reboot command failed, error was: Access is denied.(5)' not in fail_shutdown.msg"
always:
- name: set the original SDDL to the WinRM listener