initial changes to convert all commands to be string based for consistency
This commit is contained in:
parent
69772f993c
commit
02ef91242e
21 changed files with 145 additions and 256 deletions
|
@ -597,7 +597,6 @@ class CoreServices(object):
|
|||
status = 0
|
||||
for cmd in cmds:
|
||||
logging.debug("validating service(%s) using: %s", service.name, cmd)
|
||||
cmd = utils.split_args(cmd)
|
||||
try:
|
||||
node.node_net_cmd(cmd)
|
||||
except CoreCommandError as e:
|
||||
|
@ -631,7 +630,6 @@ class CoreServices(object):
|
|||
"""
|
||||
status = 0
|
||||
for args in service.shutdown:
|
||||
args = utils.split_args(args)
|
||||
try:
|
||||
node.node_net_cmd(args)
|
||||
except CoreCommandError:
|
||||
|
@ -730,7 +728,6 @@ class CoreServices(object):
|
|||
|
||||
status = 0
|
||||
for cmd in cmds:
|
||||
cmd = utils.split_args(cmd)
|
||||
try:
|
||||
node.node_net_cmd(cmd, wait)
|
||||
except CoreCommandError:
|
||||
|
|
|
@ -415,7 +415,7 @@ class HttpService(UtilService):
|
|||
Detect the apache2 version using the 'a2query' command.
|
||||
"""
|
||||
try:
|
||||
result = utils.check_cmd(["a2query", "-v"])
|
||||
result = utils.check_cmd("a2query -v")
|
||||
status = 0
|
||||
except CoreCommandError as e:
|
||||
status = e.returncode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue