mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fix issues with nxos_os_install module (#48811)
* Use expect module to copy files * Remove old and redundant upgrade files * Return error message instead of code * Cleanup copy command code * Fix force issue in nxos_install_os * new nxos_install_os integration tests * Uncomment transport tests * Revert negative test change * Remove combined option that is no longer required * Make shippable happy * Add n5k test files
This commit is contained in:
parent
10095a397c
commit
a721572206
32 changed files with 492 additions and 185 deletions
|
@ -308,9 +308,12 @@ def copy_file_from_remote(module, local, local_file_directory, file_system='boot
|
|||
child.expect('#')
|
||||
ldir += each + '/'
|
||||
|
||||
command = ('copy scp://' + module.params['remote_scp_server_user'] +
|
||||
'@' + module.params['remote_scp_server'] + module.params['remote_file'] +
|
||||
' ' + file_system + ldir + local + ' vrf management')
|
||||
cmdroot = 'copy scp://'
|
||||
ruser = module.params['remote_scp_server_user'] + '@'
|
||||
rserver = module.params['remote_scp_server']
|
||||
rfile = module.params['remote_file'] + ' '
|
||||
vrf = ' vrf management'
|
||||
command = (cmdroot + ruser + rserver + rfile + file_system + ldir + local + vrf)
|
||||
|
||||
child.sendline(command)
|
||||
# response could be remote host connection time out,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue