If the installer_checkpoint plugin is loaded and no custom stats are added during the playbook run, the plugin will fail. This adds a check to return if the custom stats are empty.
@@ -19,6 +19,10 @@ class CallbackModule(CallbackBase):
def v2_playbook_on_stats(self, stats):
+ # Return if there are no custom stats to process
+ if stats.custom == {}:
+ return
+
phases = stats.custom['_run']
# Find the longest phase title