From 02be7d064fcf121fc455fab5685b97ebec40d733 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Tue, 5 Jun 2018 17:19:17 +0200 Subject: storyboard: fix callback without args in ClientProcess.stop() --- rumba/storyboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rumba/storyboard.py b/rumba/storyboard.py index 5ff7a98..2f88f16 100644 --- a/rumba/storyboard.py +++ b/rumba/storyboard.py @@ -79,8 +79,8 @@ def _execute_command(node, node.name, e) if callback is None: - def callback(x): - pass + def callback(_): + pass # as a default, do nothing POOL.apply_async( node.execute_command, @@ -302,7 +302,7 @@ class ClientProcess(_SBEntity): self.ap_id, self.node.name ) - def callback(): + def callback(_): logger.debug( 'Client %s on node %s has terminated.', self.ap_id, self.node.name -- cgit v1.2.3