summaryrefslogtreecommitdiffstats
path: root/nova/process.py
diff options
context:
space:
mode:
authorJustin Santa Barbara <justinsb@justinsb-desktop>2010-08-08 13:05:24 -0700
committerJustin Santa Barbara <justinsb@justinsb-desktop>2010-08-08 13:05:24 -0700
commit993563b6cc9db9f24480678cf8b2d0750aee7a92 (patch)
tree7d16c431898c231c148cfec345c435770dbbbae8 /nova/process.py
parent00b5a4a1cb3b35aa07972ef93f12e86808111812 (diff)
downloadnova-993563b6cc9db9f24480678cf8b2d0750aee7a92.tar.gz
nova-993563b6cc9db9f24480678cf8b2d0750aee7a92.tar.xz
nova-993563b6cc9db9f24480678cf8b2d0750aee7a92.zip
Used new (clearer) flag names when calling processes
Diffstat (limited to 'nova/process.py')
-rw-r--r--nova/process.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/nova/process.py b/nova/process.py
index 37ab538ee..d36de0410 100644
--- a/nova/process.py
+++ b/nova/process.py
@@ -123,15 +123,19 @@ class BackRelayWithInput(protocol.ProcessProtocol):
def get_process_output(executable, args=None, env=None, path=None,
process_reactor=None, check_exit_code=True,
- process_input=None, started_deferred=None):
+ process_input=None, started_deferred=None,
+ terminate_on_stderr=False):
if process_reactor is None:
process_reactor = reactor
args = args and args or ()
env = env and env and {}
deferred = defer.Deferred()
process_handler = BackRelayWithInput(
- deferred, started_deferred=started_deferred,
- check_exit_code=check_exit_code, process_input=process_input)
+ deferred,
+ started_deferred=started_deferred,
+ check_exit_code=check_exit_code,
+ process_input=process_input,
+ terminate_on_stderr=terminate_on_stderr)
# NOTE(vish): commands come in as unicode, but self.executes needs
# strings or process.spawn raises a deprecation warning
executable = str(executable)