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
8c392a94
Commit
8c392a94
authored
Jul 02, 2015
by
Pierre-Louis Bonicoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Play.get_name: remove prefix, return name only
parent
fda8fa77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/ansible/playbook/play.py
+1
-1
test/units/playbook/test_play.py
+1
-1
No files found.
lib/ansible/playbook/play.py
View file @
8c392a94
...
...
@@ -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
):
...
...
test/units/playbook/test_play.py
View file @
8c392a94
...
...
@@ -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