diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index ecaeac2362..e8477c4a40 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -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): diff --git a/test/units/playbook/test_play.py b/test/units/playbook/test_play.py index 561da36272..0dbac227bd 100644 --- a/test/units/playbook/test_play.py +++ b/test/units/playbook/test_play.py @@ -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(