Set timeout to 40 secs for pcs status command
Change-Id: I50792aea599ab53b07a62dbed486ab3836b46674
This commit is contained in:
parent
5aafb1e068
commit
2ea22c58bb
@ -431,6 +431,7 @@ def execute_pcs(command_args: list,
|
|||||||
ssh_client: ssh.SSHClientFixture = None,
|
ssh_client: ssh.SSHClientFixture = None,
|
||||||
pcs_command: sh.ShellCommand = None,
|
pcs_command: sh.ShellCommand = None,
|
||||||
add_stderr: bool = False,
|
add_stderr: bool = False,
|
||||||
|
timeout: float = 40.,
|
||||||
**execute_params) -> str:
|
**execute_params) -> str:
|
||||||
if ssh_client is None:
|
if ssh_client is None:
|
||||||
ssh_client = topology.find_openstack_node(
|
ssh_client = topology.find_openstack_node(
|
||||||
@ -444,7 +445,7 @@ def execute_pcs(command_args: list,
|
|||||||
command = pcs_command + command_args
|
command = pcs_command + command_args
|
||||||
result = sh.execute(
|
result = sh.execute(
|
||||||
command, ssh_client=ssh_client, stdin=False, stdout=True, stderr=True,
|
command, ssh_client=ssh_client, stdin=False, stdout=True, stderr=True,
|
||||||
**execute_params)
|
timeout=timeout, **execute_params)
|
||||||
|
|
||||||
if add_stderr:
|
if add_stderr:
|
||||||
output = '\n'.join([result.stdout, result.stderr])
|
output = '\n'.join([result.stdout, result.stderr])
|
||||||
|
Loading…
Reference in New Issue
Block a user