From 5afb0a222bf1b611aa10dcdfab5706e1598d4939 Mon Sep 17 00:00:00 2001 From: Zacharias Thompson Date: Thu, 7 Apr 2016 08:27:38 -0700 Subject: [PATCH] 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. --- docsite/rst/porting_guide_2.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/porting_guide_2.0.rst b/docsite/rst/porting_guide_2.0.rst index 714c3378721..cfd4b161031 100644 --- a/docsite/rst/porting_guide_2.0.rst +++ b/docsite/rst/porting_guide_2.0.rst @@ -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