Revision 55cc0a44 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
7691 | 7691 |
# instance and then saving the defaults in the instance itself. |
7692 | 7692 |
hvparams = cluster.FillHV(instance) |
7693 | 7693 |
beparams = cluster.FillBE(instance) |
7694 |
console_cmd = hyper.GetShellCommandForConsole(instance, hvparams, beparams) |
|
7695 |
|
|
7696 |
console = objects.InstanceConsole(instance=instance.name, |
|
7697 |
kind=constants.CONS_SSH, |
|
7698 |
host=node, |
|
7699 |
user="root", |
|
7700 |
command=console_cmd) |
|
7694 |
console = hyper.GetInstanceConsole(instance, hvparams, beparams) |
|
7701 | 7695 |
|
7696 |
assert console.instance == instance.name |
|
7702 | 7697 |
assert console.Validate() |
7703 | 7698 |
|
7704 | 7699 |
return console.ToDict() |
Also available in: Unified diff