diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-03-24 06:57:52 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-03-24 06:58:56 -0700 |
commit | f323eb858e543a4f51f15f0b3090925fbef1cefb (patch) | |
tree | a95d101d223656d5934ee2367091b7e18a07a6f9 | |
parent | c4a5cf174b5816de26f6d67068267afa24b817d3 (diff) | |
download | ansible-f323eb858e543a4f51f15f0b3090925fbef1cefb.tar.gz |
nv_por is needed later in the file
Fixes #14654
-rw-r--r-- | lib/ansible/plugins/action/synchronize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/synchronize.py b/lib/ansible/plugins/action/synchronize.py index c0845d97f2..02771e3fcc 100644 --- a/lib/ansible/plugins/action/synchronize.py +++ b/lib/ansible/plugins/action/synchronize.py @@ -204,8 +204,8 @@ class ActionModule(ActionBase): dest_is_local = True # CHECK FOR NON-DEFAULT SSH PORT + inv_port = task_vars.get('ansible_ssh_port', None) or C.DEFAULT_REMOTE_PORT if self._task.args.get('dest_port', None) is None: - inv_port = task_vars.get('ansible_ssh_port', None) or C.DEFAULT_REMOTE_PORT if inv_port is not None: self._task.args['dest_port'] = inv_port |