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
80eb7a20
Commit
80eb7a20
authored
Jul 20, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11469 from pilou-/local_variable
Fix pyflakes error: use 'msg' variable
parents
91f2acb0
8c392a94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/ansible/playbook/play.py
+1
-1
lib/ansible/plugins/callback/default.py
+1
-1
test/units/playbook/test_play.py
+1
-1
No files found.
lib/ansible/playbook/play.py
View file @
80eb7a20
...
...
@@ -95,7 +95,7 @@ class Play(Base, Taggable, Become):
def
get_name
(
self
):
''' return the name of the Play '''
return
"PLAY:
%
s"
%
self
.
_attributes
.
get
(
'name'
)
return
self
.
_attributes
.
get
(
'name'
)
@staticmethod
def
load
(
data
,
variable_manager
=
None
,
loader
=
None
):
...
...
lib/ansible/plugins/callback/default.py
View file @
80eb7a20
...
...
@@ -108,4 +108,4 @@ class CallbackModule(CallbackBase):
else
:
msg
=
"PLAY [
%
s]"
%
name
self
.
_display
.
banner
(
name
)
self
.
_display
.
banner
(
msg
)
test/units/playbook/test_play.py
View file @
80eb7a20
...
...
@@ -39,7 +39,7 @@ class TestPlay(unittest.TestCase):
def
test_empty_play
(
self
):
p
=
Play
.
load
(
dict
())
self
.
assertEqual
(
str
(
p
),
"PLAY: "
)
self
.
assertEqual
(
str
(
p
),
''
)
def
test_basic_play
(
self
):
p
=
Play
.
load
(
dict
(
...
...
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