mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Play.get_name: remove prefix, return name only
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user