Revision 1c3231aa lib/hypervisor/hv_chroot.py
b/lib/hypervisor/hv_chroot.py | ||
---|---|---|
267 | 267 |
return self.GetLinuxNodeInfo() |
268 | 268 |
|
269 | 269 |
@classmethod |
270 |
def GetInstanceConsole(cls, instance, # pylint: disable=W0221 |
|
270 |
def GetInstanceConsole(cls, instance, primary_node, # pylint: disable=W0221
|
|
271 | 271 |
hvparams, beparams, root_dir=None): |
272 | 272 |
"""Return information for connecting to the console of an instance. |
273 | 273 |
|
... | ... | |
279 | 279 |
|
280 | 280 |
return objects.InstanceConsole(instance=instance.name, |
281 | 281 |
kind=constants.CONS_SSH, |
282 |
host=instance.primary_node,
|
|
282 |
host=primary_node.name,
|
|
283 | 283 |
user=constants.SSH_CONSOLE_USER, |
284 | 284 |
command=["chroot", root_dir]) |
285 | 285 |
|
Also available in: Unified diff