mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix spurious warnings with ansible_winrm_kinit_X args (#24380)
* added to pywinrm arg whitelist * clarified error text on kinit_mode error * fixes #23822
This commit is contained in:
parent
ed56f51f18
commit
98ff93b2db
1 changed files with 2 additions and 2 deletions
|
@ -143,10 +143,10 @@ class Connection(ConnectionBase):
|
|||
elif kinit_mode == "manual":
|
||||
self._kerb_managed = False
|
||||
else:
|
||||
raise AnsibleError('Unknown ansible_winrm_kinit_mode value: %s' % kinit_mode)
|
||||
raise AnsibleError('Unknown ansible_winrm_kinit_mode value: "%s" (must be "managed" or "manual")' % kinit_mode)
|
||||
|
||||
# arg names we're going passing directly
|
||||
internal_kwarg_mask = set(['self', 'endpoint', 'transport', 'username', 'password', 'scheme', 'path'])
|
||||
internal_kwarg_mask = set(['self', 'endpoint', 'transport', 'username', 'password', 'scheme', 'path', 'kinit_mode', 'kinit_cmd'])
|
||||
|
||||
self._winrm_kwargs = dict(username=self._winrm_user, password=self._winrm_pass)
|
||||
argspec = inspect.getargspec(Protocol.__init__)
|
||||
|
|
Loading…
Reference in a new issue