Revision 052783ff lib/cli.py
b/lib/cli.py | ||
---|---|---|
2488 | 2488 |
# No need to use SSH |
2489 | 2489 |
result = utils.RunCmd(cmd) |
2490 | 2490 |
else: |
2491 |
result = self.ssh.Run(node_name, "root", utils.ShellQuoteArgs(cmd)) |
|
2491 |
result = self.ssh.Run(node_name, constants.SSH_LOGIN_USER, |
|
2492 |
utils.ShellQuoteArgs(cmd)) |
|
2492 | 2493 |
|
2493 | 2494 |
if result.failed: |
2494 | 2495 |
errmsg = ["Failed to run command %s" % result.cmd] |
Also available in: Unified diff