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
9aa42144
Commit
9aa42144
authored
Jul 30, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed delegate_to ref in syncronize
parent
8a00dff9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib/ansible/plugins/action/synchronize.py
+2
-4
No files found.
lib/ansible/plugins/action/synchronize.py
View file @
9aa42144
...
...
@@ -140,14 +140,12 @@ class ActionModule(ActionBase):
user
=
None
if
boolean
(
task_vars
.
get
(
'set_remote_user'
,
'yes'
)):
if
use_delegate
:
user
=
task_vars
[
'hostvars'
][
conn
.
delegate
]
.
get
(
'ansible_ssh_user'
)
if
not
use_delegate
or
not
user
:
user
=
task_vars
.
get
(
'ansible_ssh_user'
)
or
self
.
_play_context
.
remote_user
elif
use_delegate
:
user
=
task_vars
[
'hostvars'
][
task_vars
.
get
(
'delegate_to'
)]
.
get
(
'ansible_ssh_user'
)
if
use_delegate
:
# FIXME
private_key
=
task_vars
.
get
(
'ansible_ssh_private_key_file'
)
or
self
.
_play_context
.
private_key_file
else
:
private_key
=
task_vars
.
get
(
'ansible_ssh_private_key_file'
)
or
self
.
_play_context
.
private_key_file
...
...
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