Revision 1c3231aa lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
627 627
    instance_list = self._GetInstanceList(True, hvparams)
628 628
    return _GetNodeInfo(result.stdout, instance_list)
629 629

  
630
  def GetInstanceConsole(self, instance, hvparams, beparams):
630
  def GetInstanceConsole(self, instance, primary_node, hvparams, beparams):
631 631
    """Return a command for connecting to the console of an instance.
632 632

  
633 633
    """
634 634
    xen_cmd = self._GetCommand(hvparams)
635 635
    return objects.InstanceConsole(instance=instance.name,
636 636
                                   kind=constants.CONS_SSH,
637
                                   host=instance.primary_node,
637
                                   host=primary_node.name,
638 638
                                   user=constants.SSH_CONSOLE_USER,
639 639
                                   command=[pathutils.XEN_CONSOLE_WRAPPER,
640 640
                                            xen_cmd, instance.name])

Also available in: Unified diff