Revision c42be2c0 lib/hypervisor/hv_chroot.py

b/lib/hypervisor/hv_chroot.py
260 260

  
261 261
  @classmethod
262 262
  def GetInstanceConsole(cls, instance, primary_node, # pylint: disable=W0221
263
                         hvparams, beparams, root_dir=None):
263
                         node_group, hvparams, beparams, root_dir=None):
264 264
    """Return information for connecting to the console of an instance.
265 265

  
266 266
    """
......
269 269
      if not os.path.ismount(root_dir):
270 270
        raise HypervisorError("Instance %s is not running" % instance.name)
271 271

  
272
    ndparams = node_group.FillND(primary_node)
272 273
    return objects.InstanceConsole(instance=instance.name,
273 274
                                   kind=constants.CONS_SSH,
274 275
                                   host=primary_node.name,
276
                                   port=ndparams.get(constants.ND_SSH_PORT),
275 277
                                   user=constants.SSH_CONSOLE_USER,
276 278
                                   command=["chroot", root_dir])
277 279

  

Also available in: Unified diff