mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
corrected become_methods class variable in winrm
This should now correctly react when using become with winrm fixes #13331
This commit is contained in:
parent
80db6bacc4
commit
005b17afec
1 changed files with 1 additions and 1 deletions
|
@ -62,6 +62,7 @@ class Connection(ConnectionBase):
|
||||||
'''WinRM connections over HTTP/HTTPS.'''
|
'''WinRM connections over HTTP/HTTPS.'''
|
||||||
|
|
||||||
module_implementation_preferences = ('.ps1', '')
|
module_implementation_preferences = ('.ps1', '')
|
||||||
|
become_methods = []
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
||||||
|
@ -72,7 +73,6 @@ class Connection(ConnectionBase):
|
||||||
self._shell_type = 'powershell'
|
self._shell_type = 'powershell'
|
||||||
|
|
||||||
# TODO: Add runas support
|
# TODO: Add runas support
|
||||||
self.become_methods_supported=[]
|
|
||||||
|
|
||||||
super(Connection, self).__init__(*args, **kwargs)
|
super(Connection, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue