|
|
@ -140,6 +140,7 @@ class FormConfig(object): |
|
|
|
close_fds=True, |
|
|
|
close_fds=True, |
|
|
|
preexec_fn=run_as_fn) |
|
|
|
preexec_fn=run_as_fn) |
|
|
|
stdout, stderr = proc.communicate(input) |
|
|
|
stdout, stderr = proc.communicate(input) |
|
|
|
|
|
|
|
self.log.info("Exit code: {0}".format(proc.returncode)) |
|
|
|
return proc.returncode |
|
|
|
return proc.returncode |
|
|
|
except OSError as err: |
|
|
|
except OSError as err: |
|
|
|
self.log.exception(err) |
|
|
|
self.log.exception(err) |
|
|
@ -155,6 +156,7 @@ class FormConfig(object): |
|
|
|
close_fds=True, |
|
|
|
close_fds=True, |
|
|
|
preexec_fn=run_as_fn) |
|
|
|
preexec_fn=run_as_fn) |
|
|
|
stdout, stderr = proc.communicate() |
|
|
|
stdout, stderr = proc.communicate() |
|
|
|
|
|
|
|
self.log.info("Exit code: {0}".format(proc.returncode)) |
|
|
|
return { |
|
|
|
return { |
|
|
|
'stdout': stdout, |
|
|
|
'stdout': stdout, |
|
|
|
'stderr': stderr, |
|
|
|
'stderr': stderr, |
|
|
|