Commit f92c5af0 authored by Alain Takoudjou's avatar Alain Takoudjou

Slapgrid: Avoid buffer limit by redirecting stdout to None

parent e64eb24c
...@@ -295,7 +295,7 @@ def runSoftwareWithLock(config, lock=True): ...@@ -295,7 +295,7 @@ def runSoftwareWithLock(config, lock=True):
slapgrid = Popen([config['slapos'], 'node', 'software', '--all', slapgrid = Popen([config['slapos'], 'node', 'software', '--all',
'--cfg', config['slapos_cfg'], '--pidfile', slapgrid_pid, '--cfg', config['slapos_cfg'], '--pidfile', slapgrid_pid,
'--verbose', '--logfile', config['software_log']], '--verbose', '--logfile', config['software_log']],
name='slapgrid-sr') name='slapgrid-sr', stdout=None)
if lock: if lock:
slapgrid.wait() slapgrid.wait()
#Saves the current compile software for re-use #Saves the current compile software for re-use
...@@ -392,7 +392,7 @@ def runInstanceWithLock(config, lock=True): ...@@ -392,7 +392,7 @@ def runInstanceWithLock(config, lock=True):
slapgrid = Popen([config['slapos'], 'node', 'instance', '--all', slapgrid = Popen([config['slapos'], 'node', 'instance', '--all',
'--cfg', config['slapos_cfg'], '--pidfile', slapgrid_pid, '--cfg', config['slapos_cfg'], '--pidfile', slapgrid_pid,
'--verbose', '--logfile', config['instance_log']], '--verbose', '--logfile', config['instance_log']],
name='slapgrid-cp') name='slapgrid-cp', stdout=None)
if lock: if lock:
slapgrid.wait() slapgrid.wait()
return ( True if slapgrid.returncode == 0 else False ) return ( True if slapgrid.returncode == 0 else False )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment