From 133874a5775f0e948cd78d957a77633875b067b8 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 28 Jan 2013 12:40:18 +0100 Subject: [PATCH] Fix module.run_command usage in fireball --- library/fireball | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/fireball b/library/fireball index 6eb363723e..11a0b61188 100644 --- a/library/fireball +++ b/library/fireball @@ -143,7 +143,7 @@ def daemonize_self(module, password, port, minutes): os.dup2(dev_null.fileno(), sys.stderr.fileno()) log("daemonizing successful (%s,%s)" % (password, port)) -def command(data): +def command(module, data): if 'cmd' not in data: return dict(failed=True, msg='internal error: cmd is required') if 'tmp_path' not in data: @@ -220,7 +220,7 @@ def serve(module, password, port, minutes): response = {} if mode == 'command': - response = command(data) + response = command(module, data) elif mode == 'put': response = put(data) elif mode == 'fetch':