Update porting_guide_2.0.rst

Small fix to the porting guide, in order to get the playbook name the correct attribute is ._file_name instead of ._filename.
pull/14028/head
Zacharias Thompson 9 years ago committed by Brian Coca
parent 957b336cc1
commit 5afb0a222b

@ -245,7 +245,7 @@ populates the callback with them. Here's a short snippet that shows you how::
def v2_playbook_on_start(self, playbook):
self.playbook = playbook
self.playbook_name = os.path.basename(self.playbook._filename)
self.playbook_name = os.path.basename(self.playbook._file_name)
def v2_playbook_on_play_start(self, play):
self.play = play

Loading…
Cancel
Save