Skip to content

Commit

Permalink
Fix module.run_command usage in fireball
Browse files Browse the repository at this point in the history
  • Loading branch information
dhozac committed Jan 28, 2013
1 parent 9f4eaed commit 133874a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/fireball
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 133874a

Please sign in to comment.