mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix module.run_command usage in fireball
This commit is contained in:
parent
9f4eaed88f
commit
133874a577
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ def daemonize_self(module, password, port, minutes):
|
||||||
os.dup2(dev_null.fileno(), sys.stderr.fileno())
|
os.dup2(dev_null.fileno(), sys.stderr.fileno())
|
||||||
log("daemonizing successful (%s,%s)" % (password, port))
|
log("daemonizing successful (%s,%s)" % (password, port))
|
||||||
|
|
||||||
def command(data):
|
def command(module, data):
|
||||||
if 'cmd' not in data:
|
if 'cmd' not in data:
|
||||||
return dict(failed=True, msg='internal error: cmd is required')
|
return dict(failed=True, msg='internal error: cmd is required')
|
||||||
if 'tmp_path' not in data:
|
if 'tmp_path' not in data:
|
||||||
|
@ -220,7 +220,7 @@ def serve(module, password, port, minutes):
|
||||||
response = {}
|
response = {}
|
||||||
|
|
||||||
if mode == 'command':
|
if mode == 'command':
|
||||||
response = command(data)
|
response = command(module, data)
|
||||||
elif mode == 'put':
|
elif mode == 'put':
|
||||||
response = put(data)
|
response = put(data)
|
||||||
elif mode == 'fetch':
|
elif mode == 'fetch':
|
||||||
|
|
Loading…
Reference in a new issue