mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Remove unused stdout/stderr_callback arg
This commit is contained in:
parent
b1634785fb
commit
52d1aff2ae
1 changed files with 3 additions and 4 deletions
|
@ -297,8 +297,7 @@ def hook_callback(action, hooks=[], args=None, no_trace=False, chdir=None,
|
||||||
|
|
||||||
|
|
||||||
def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
||||||
chdir=None, env=None, user="root", stdout_callback=None,
|
chdir=None, env=None, user="root", return_format="json"):
|
||||||
stderr_callback=None, return_format="json"):
|
|
||||||
"""
|
"""
|
||||||
Execute hook from a file with arguments
|
Execute hook from a file with arguments
|
||||||
|
|
||||||
|
@ -372,8 +371,8 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
||||||
|
|
||||||
# Define output callbacks and call command
|
# Define output callbacks and call command
|
||||||
callbacks = (
|
callbacks = (
|
||||||
stdout_callback if stdout_callback else lambda l: logger.debug(l.rstrip()+"\r"),
|
lambda l: logger.debug(l.rstrip()+"\r"),
|
||||||
stderr_callback if stderr_callback else lambda l: logger.warning(l.rstrip()),
|
lambda l: logger.warning(l.rstrip()),
|
||||||
)
|
)
|
||||||
|
|
||||||
if stdinfo:
|
if stdinfo:
|
||||||
|
|
Loading…
Add table
Reference in a new issue