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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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