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.
This commit is contained in:
Zacharias Thompson 2016-04-07 08:27:38 -07:00 committed by Brian Coca
parent 957b336cc1
commit 5afb0a222b

View file

@ -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): def v2_playbook_on_start(self, playbook):
self.playbook = 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): def v2_playbook_on_play_start(self, play):
self.play = play self.play = play