Skip to content

Commit

Permalink
print version of Monkeyble when starting callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Feb 2, 2023
1 parent 85fac79 commit 858cc90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/callback/monkeyble_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from ansible.plugins.callback import CallbackBase
from ansible.template import Templar
from ansible.utils.display import Display
from monkeyble._version import __version__


BASE_DIR = os.path.abspath(
Expand Down Expand Up @@ -59,7 +60,7 @@ def display_message_ok(msg):
global_display.display(msg=msg, color=C.COLOR_OK)

def v2_playbook_on_play_start(self, play):
self.display_message_ok(msg="🐵 Starting Monkeyble callback")
self.display_message_ok(msg=f"🐵 Starting Monkeyble callback {__version__}")
vm = play.get_variable_manager()
self.extra_vars = vm.extra_vars
monkeyble_scenario = self.extra_vars.get("monkeyble_scenario")
Expand Down

0 comments on commit 858cc90

Please sign in to comment.