ansible/lib/ansible
Alberto Murillo ec2521f6af Fix ssh plugin to correctly fetch files when using scp (#18614)
Fetch module uses fetch_file() from plugin/connection/ssh.py to
retrieve files from the remote hosts which in turns uses
_file_transport_command(self, in_path, out_path, sftp_action) being
sftp_action = 'get'

When using scp rather than sftp, sftp_action variable is not used
and the scp command is formed in a way that the file is always
sent to the remote machine

This patch fixes _file_transport_command() to correctly form the scp
swaping src and dest if sftp_action is 'get'

Bug introduced at 8e47b9b
Fixes #18603

Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
2016-11-26 16:55:38 -06:00
..
cli Python 3 fixes for ansible-doc. 2016-11-03 16:09:24 -07:00
compat Move py34 mock_open compat to compat/test/mock (#17157) 2016-08-19 18:11:24 -04:00
config
errors Add error info if tabs are found in the yaml (#18343) 2016-11-08 11:43:08 -05:00
executor fixed issue with when/with error deferment 2016-11-23 13:43:34 -05:00
galaxy Cast input role version to string before comparing to available versions (#18269) 2016-10-31 21:07:38 -04:00
inventory Properly sort groups by name as well as depth when getting vars 2016-11-18 22:57:52 -06:00
module_utils Add param method to oVirt helper module (#18605) 2016-11-24 16:03:22 +00:00
modules Update submodule refs. 2016-11-24 20:01:59 -08:00
parsing Fix 'ansible-vault edit' crash on changed nonascii 2016-11-16 15:14:07 -05:00
playbook Look for _get_parent_attribute method in both src and dst dict 2016-11-23 12:51:38 -06:00
plugins Fix ssh plugin to correctly fetch files when using scp (#18614) 2016-11-26 16:55:38 -06:00
template always template when called from template (#18490) 2016-11-15 15:16:46 -05:00
utils Network docs fragments: fix copy paste errors (#18564) 2016-11-21 11:36:32 +00:00
vars ansible_playbook_python (#18530) 2016-11-23 16:30:46 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Adding a persistent connection utility 2016-11-21 12:35:27 -06:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt