Revision 0a05f959
b/qa/qa_utils.py | ||
---|---|---|
146 | 146 |
def GetSSHCommand(node, cmd, strict=True): |
147 | 147 |
"""Builds SSH command to be executed. |
148 | 148 |
|
149 |
Args: |
|
150 |
- node: Node the command should run on |
|
151 |
- cmd: Command to be executed as a list with all parameters |
|
152 |
- strict: Whether to enable strict host key checking |
|
149 |
@type node: string |
|
150 |
@param node: node the command should run on |
|
151 |
@type cmd: string |
|
152 |
@param cmd: command to be executed in the node |
|
153 |
@type strict: boolean |
|
154 |
@param strict: whether to enable strict host key checking |
|
153 | 155 |
|
154 | 156 |
""" |
155 | 157 |
args = [ 'ssh', '-oEscapeChar=none', '-oBatchMode=yes', '-l', 'root', '-t' ] |
Also available in: Unified diff