Revision 0a80a26f
b/lib/cmdlib.py | ||
---|---|---|
3160 | 3160 |
console_cmd = hyper.GetShellCommandForConsole(instance) |
3161 | 3161 |
|
3162 | 3162 |
# build ssh cmdline |
3163 |
cmd = self.ssh.BuildCmd(node, "root", console_cmd, batch=True, tty=True) |
|
3164 |
return cmd[0], cmd |
|
3163 |
return self.ssh.BuildCmd(node, "root", console_cmd, batch=True, tty=True) |
|
3165 | 3164 |
|
3166 | 3165 |
|
3167 | 3166 |
class LUReplaceDisks(LogicalUnit): |
b/scripts/gnt-instance | ||
---|---|---|
505 | 505 |
instance_name = args[0] |
506 | 506 |
|
507 | 507 |
op = opcodes.OpConnectConsole(instance_name=instance_name) |
508 |
cmd, argv = SubmitOpCode(op)
|
|
508 |
cmd = SubmitOpCode(op) |
|
509 | 509 |
# drop lock and exec so other commands can run while we have console |
510 | 510 |
utils.Unlock("cmd") |
511 | 511 |
try: |
512 |
os.execvp(cmd, argv)
|
|
512 |
os.execvp(cmd[0], cmd)
|
|
513 | 513 |
finally: |
514 | 514 |
sys.stderr.write("Can't run console command %s with arguments:\n'%s'" % |
515 | 515 |
(cmd, " ".join(argv))) |
Also available in: Unified diff