From 005b17afec1ab588bb0662f2b2a43771224279df Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 30 Nov 2015 08:32:53 -0800 Subject: [PATCH] corrected become_methods class variable in winrm This should now correctly react when using become with winrm fixes #13331 --- lib/ansible/plugins/connection/winrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/winrm.py b/lib/ansible/plugins/connection/winrm.py index a506d39010..735272330a 100644 --- a/lib/ansible/plugins/connection/winrm.py +++ b/lib/ansible/plugins/connection/winrm.py @@ -62,6 +62,7 @@ class Connection(ConnectionBase): '''WinRM connections over HTTP/HTTPS.''' module_implementation_preferences = ('.ps1', '') + become_methods = [] def __init__(self, *args, **kwargs): @@ -72,7 +73,6 @@ class Connection(ConnectionBase): self._shell_type = 'powershell' # TODO: Add runas support - self.become_methods_supported=[] super(Connection, self).__init__(*args, **kwargs)