mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
fix nxos_file_copy and provider getting set to None when transport is cli (#30262)
* nxos_file_copy bug fix Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * provider gets set to None in module level when transport is cli Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
d8371cec91
commit
578ae3b238
2 changed files with 7 additions and 13 deletions
|
@ -59,13 +59,6 @@ class ActionModule(_ActionModule):
|
|||
pc.password = provider['password'] or self._play_context.password
|
||||
pc.private_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file
|
||||
pc.timeout = int(provider['timeout'] or C.PERSISTENT_COMMAND_TIMEOUT)
|
||||
self._task.args['provider'] = provider.update(
|
||||
host=pc.remote_addr,
|
||||
port=pc.port,
|
||||
username=pc.remote_user,
|
||||
password=pc.password,
|
||||
ssh_keyfile=pc.private_key_file
|
||||
)
|
||||
display.vvv('using connection plugin %s' % pc.connection, pc.remote_addr)
|
||||
connection = self._shared_loader_obj.connection_loader.get('persistent', pc, sys.stdin)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue