Revision 1c3231aa lib/hypervisor/hv_lxc.py
b/lib/hypervisor/hv_lxc.py | ||
---|---|---|
414 | 414 |
return self.GetLinuxNodeInfo() |
415 | 415 |
|
416 | 416 |
@classmethod |
417 |
def GetInstanceConsole(cls, instance, hvparams, beparams): |
|
417 |
def GetInstanceConsole(cls, instance, primary_node, hvparams, beparams):
|
|
418 | 418 |
"""Return a command for connecting to the console of an instance. |
419 | 419 |
|
420 | 420 |
""" |
421 | 421 |
return objects.InstanceConsole(instance=instance.name, |
422 | 422 |
kind=constants.CONS_SSH, |
423 |
host=instance.primary_node,
|
|
423 |
host=primary_node.name,
|
|
424 | 424 |
user=constants.SSH_CONSOLE_USER, |
425 | 425 |
command=["lxc-console", "-n", instance.name]) |
426 | 426 |
|
Also available in: Unified diff