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
a6aedbcc
Commit
a6aedbcc
authored
Jul 06, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now correctly picks up old become password host vars
parent
d74cf467
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
lib/ansible/executor/connection_info.py
+9
-0
lib/ansible/modules/core
+1
-1
lib/ansible/modules/extras
+1
-1
No files found.
lib/ansible/executor/connection_info.py
View file @
a6aedbcc
...
...
@@ -165,8 +165,10 @@ class ConnectionInformation:
# backwards compat
self
.
sudo_exe
=
None
self
.
sudo_flags
=
None
self
.
sudo_pass
=
None
self
.
su_exe
=
None
self
.
su_flags
=
None
self
.
su_pass
=
None
# general flags (should we move out?)
self
.
verbosity
=
0
...
...
@@ -295,6 +297,13 @@ class ConnectionInformation:
if
variable_name
in
variables
:
setattr
(
new_info
,
attr
,
variables
[
variable_name
])
# become legacy updates
if
not
new_info
.
become_pass
:
if
new_info
.
become_method
==
'sudo'
and
new_info
.
sudo_pass
:
setattr
(
new_info
,
'become_pass'
,
new_info
.
sudo_pass
)
elif
new_info
.
become_method
==
'su'
and
new_info
.
su_pass
:
setattr
(
new_info
,
'become_pass'
,
new_info
.
su_pass
)
return
new_info
def
make_become_cmd
(
self
,
cmd
,
executable
=
C
.
DEFAULT_EXECUTABLE
):
...
...
core
@
ff69ce79
Subproject commit
abdd96ed1e966a290cdcdb4cb9f8d2a7c03ae59e
Subproject commit
ff69ce7912e2cee53e6737e377853a49c0482b1c
extras
@
4e48ef9e
Subproject commit
195ef57bfb254e719aa7ea3a6ad30729e3036b87
Subproject commit
4e48ef9ecace3a6eb92e3e4d2ef1a3ea2b7e33ab
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