Merge branch 'master' of github.com:yahoo/Openstack-DevstackPy
This commit is contained in:
commit
f894e8767f
1
AUTHORS
1
AUTHORS
@ -4,6 +4,7 @@ Joshua Harlow <harlowja@yahoo-inc.com>
|
|||||||
Ken Thomas <krt@yahoo-inc.com>
|
Ken Thomas <krt@yahoo-inc.com>
|
||||||
Gunther Hagleitner <hagleitn@yahoo-inc.com>
|
Gunther Hagleitner <hagleitn@yahoo-inc.com>
|
||||||
Chris Wright <chrisw@sous-sol.org>
|
Chris Wright <chrisw@sous-sol.org>
|
||||||
|
Ed Hall <edhall@yahoo-inc.com>
|
||||||
|
|
||||||
V1
|
V1
|
||||||
--
|
--
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
{
|
{
|
||||||
# Qpidd runs on the same port
|
# Qpidd runs on the same port
|
||||||
"run_as_root": true,
|
"run_as_root": true,
|
||||||
|
"ignore_failure": true,
|
||||||
"cmd": [
|
"cmd": [
|
||||||
"service",
|
"service",
|
||||||
"qpidd",
|
"qpidd",
|
||||||
@ -30,6 +31,7 @@
|
|||||||
{
|
{
|
||||||
# Qpidd runs on the same port
|
# Qpidd runs on the same port
|
||||||
"run_as_root": true,
|
"run_as_root": true,
|
||||||
|
"ignore_failure": true,
|
||||||
"cmd": [
|
"cmd": [
|
||||||
"chkconfig",
|
"chkconfig",
|
||||||
"qpidd",
|
"qpidd",
|
||||||
|
@ -81,7 +81,7 @@ def execute(*cmd, **kwargs):
|
|||||||
cwd = kwargs.pop('cwd', None)
|
cwd = kwargs.pop('cwd', None)
|
||||||
env_overrides = kwargs.pop('env_overrides', None)
|
env_overrides = kwargs.pop('env_overrides', None)
|
||||||
close_stdin = kwargs.pop('close_stdin', False)
|
close_stdin = kwargs.pop('close_stdin', False)
|
||||||
ignore_exit_code = False
|
ignore_exit_code = kwargs.pop('ignore_exit_code', False)
|
||||||
|
|
||||||
if isinstance(check_exit_code, bool):
|
if isinstance(check_exit_code, bool):
|
||||||
ignore_exit_code = not check_exit_code
|
ignore_exit_code = not check_exit_code
|
||||||
|
@ -115,7 +115,9 @@ def execute_template(*cmds, **kargs):
|
|||||||
stdin = joinlinesep(*stdin_full)
|
stdin = joinlinesep(*stdin_full)
|
||||||
exec_result = sh.execute(*cmd_to_run,
|
exec_result = sh.execute(*cmd_to_run,
|
||||||
run_as_root=cmdinfo.get('run_as_root', False),
|
run_as_root=cmdinfo.get('run_as_root', False),
|
||||||
process_input=stdin, **kargs)
|
process_input=stdin,
|
||||||
|
ignore_exit_code=cmdinfo.get('ignore_failure', False),
|
||||||
|
**kargs)
|
||||||
cmd_results.append(exec_result)
|
cmd_results.append(exec_result)
|
||||||
return cmd_results
|
return cmd_results
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user