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:
parent
957b336cc1
commit
5afb0a222b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue