Revision 0a80a26f scripts/gnt-instance
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