mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
check_output will be best here I believe
This commit is contained in:
parent
f821b1df5c
commit
07f68b91b5
1 changed files with 2 additions and 3 deletions
|
@ -17,10 +17,9 @@ def run_ipset(command, *args, **kw):
|
||||||
args=' '.join(args)
|
args=' '.join(args)
|
||||||
)
|
)
|
||||||
|
|
||||||
proc = subprocess.call(
|
output = subprocess.check_output(
|
||||||
shlex.split(full_command),
|
shlex.split(full_command),
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
timeout=timeout
|
timeout=timeout
|
||||||
)
|
)
|
||||||
|
|
||||||
return proc
|
return output
|
Loading…
Reference in a new issue