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
1acd56a9
Commit
1acd56a9
authored
Apr 14, 2015
by
Michael Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix various pylint issues ( missing import and wrong variable names )
parent
f25f2d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
v2/ansible/executor/connection_info.py
+3
-3
No files found.
v2/ansible/executor/connection_info.py
View file @
1acd56a9
...
@@ -25,7 +25,7 @@ import random
...
@@ -25,7 +25,7 @@ import random
from
ansible
import
constants
as
C
from
ansible
import
constants
as
C
from
ansible.template
import
Templar
from
ansible.template
import
Templar
from
ansible.utils.boolean
import
boolean
from
ansible.utils.boolean
import
boolean
from
ansible.errors
import
AnsibleError
__all__
=
[
'ConnectionInformation'
]
__all__
=
[
'ConnectionInformation'
]
...
@@ -230,7 +230,7 @@ class ConnectionInformation:
...
@@ -230,7 +230,7 @@ class ConnectionInformation:
elif
self
.
become_method
==
'pbrun'
:
elif
self
.
become_method
==
'pbrun'
:
exe
=
become_settings
.
get
(
'pbrun_exe'
,
'pbrun'
)
exe
=
become_settings
.
get
(
'pbrun_exe'
,
'pbrun'
)
flags
=
become_settings
.
get
(
'pbrun_flags'
,
''
)
flags
=
become_settings
.
get
(
'pbrun_flags'
,
''
)
becomecmd
=
'
%
s -b -l
%
s -u
%
s "
%
s"'
%
(
exe
,
flags
,
user
,
success_cmd
)
becomecmd
=
'
%
s -b -l
%
s -u
%
s "
%
s"'
%
(
exe
,
flags
,
self
.
become_
user
,
success_cmd
)
elif
self
.
become_method
==
'pfexec'
:
elif
self
.
become_method
==
'pfexec'
:
exe
=
become_settings
.
get
(
'pfexec_exe'
,
'pbrun'
)
exe
=
become_settings
.
get
(
'pfexec_exe'
,
'pbrun'
)
...
@@ -239,7 +239,7 @@ class ConnectionInformation:
...
@@ -239,7 +239,7 @@ class ConnectionInformation:
becomecmd
=
'
%
s
%
s "
%
s"'
%
(
exe
,
flags
,
success_cmd
)
becomecmd
=
'
%
s
%
s "
%
s"'
%
(
exe
,
flags
,
success_cmd
)
else
:
else
:
raise
errors
.
AnsibleError
(
"Privilege escalation method not found:
%
s"
%
method
)
raise
AnsibleError
(
"Privilege escalation method not found:
%
s"
%
self
.
become_
method
)
return
((
'
%
s -c '
%
executable
)
+
pipes
.
quote
(
becomecmd
),
prompt
,
success_key
)
return
((
'
%
s -c '
%
executable
)
+
pipes
.
quote
(
becomecmd
),
prompt
,
success_key
)
...
...
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