Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
198476e3
Commit
198476e3
authored
May 07, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up some portions of synchronize action plugin (v2)
parent
8db21f99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
lib/ansible/plugins/action/synchronize.py
+1
-4
No files found.
lib/ansible/plugins/action/synchronize.py
View file @
198476e3
...
...
@@ -96,10 +96,7 @@ class ActionModule(ActionBase):
dest_is_local
=
dest_host
in
[
'127.0.0.1'
,
'localhost'
]
# CHECK FOR NON-DEFAULT SSH PORT
dest_port
=
self
.
_task
.
args
.
get
(
'dest_port'
)
inv_port
=
task_vars
.
get
(
'ansible_ssh_port'
)
or
task_vars
.
get
(
'inventory_hostname'
)
if
inv_port
!=
dest_port
and
inv_port
!=
task_vars
.
get
(
'inventory_hostname'
):
dest_port
=
inv_port
dest_port
=
task_vars
.
get
(
'ansible_ssh_port'
)
or
self
.
_task
.
args
.
get
(
'dest_port'
)
or
22
# edge case: explicit delegate and dest_host are the same
if
dest_host
==
task_vars
.
get
(
'delegate_to'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment