Skip to content
Snippets Groups Projects
Commit 0a05f959 authored by Adeodato Simo's avatar Adeodato Simo
Browse files

Fix docstring for "cmd" in qa_utils.GetSSHCommand


Docstring indicated "cmd" should be a list, when it's expected that
it'll be a string.

Also, converted docstring to current epydoc-style list of function
arguments.

Signed-off-by: default avatarAdeodato Simo <dato@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent f3fd2c9d
No related branches found
No related tags found
No related merge requests found
...@@ -146,10 +146,12 @@ def AssertCommand(cmd, fail=False, node=None): ...@@ -146,10 +146,12 @@ def AssertCommand(cmd, fail=False, node=None):
def GetSSHCommand(node, cmd, strict=True): def GetSSHCommand(node, cmd, strict=True):
"""Builds SSH command to be executed. """Builds SSH command to be executed.
Args: @type node: string
- node: Node the command should run on @param node: node the command should run on
- cmd: Command to be executed as a list with all parameters @type cmd: string
- strict: Whether to enable strict host key checking @param cmd: command to be executed in the node
@type strict: boolean
@param strict: whether to enable strict host key checking
""" """
args = [ 'ssh', '-oEscapeChar=none', '-oBatchMode=yes', '-l', 'root', '-t' ] args = [ 'ssh', '-oEscapeChar=none', '-oBatchMode=yes', '-l', 'root', '-t' ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment