aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-06-05 17:19:17 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-06-05 17:19:17 +0200
commit02be7d064fcf121fc455fab5685b97ebec40d733 (patch)
treec009c5e0dcd0683f5d33c05a813727d242271b9b
parent63cc59cc42b22788801d20c1a6d9ca68cea8dc37 (diff)
downloadrumba-02be7d064fcf121fc455fab5685b97ebec40d733.tar.gz
rumba-02be7d064fcf121fc455fab5685b97ebec40d733.zip
storyboard: fix callback without args in ClientProcess.stop()
-rw-r--r--rumba/storyboard.py6
1 files 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