Revision 30989e69 lib/hypervisor.py

b/lib/hypervisor.py
110 110
    raise NotImplementedError
111 111

  
112 112
  @staticmethod
113
  def GetShellCommandForConsole(instance_name):
113
  def GetShellCommandForConsole(instance):
114 114
    """Return a command for connecting to the console of an instance.
115 115

  
116 116
    """
......
320 320
    return result
321 321

  
322 322
  @staticmethod
323
  def GetShellCommandForConsole(instance_name):
323
  def GetShellCommandForConsole(instance):
324 324
    """Return a command for connecting to the console of an instance.
325 325

  
326 326
    """
327
    return "xm console %s" % instance_name
327
    return "xm console %s" % instance.name
328 328

  
329 329

  
330 330
  def Verify(self):
......
496 496
    return result
497 497

  
498 498
  @staticmethod
499
  def GetShellCommandForConsole(instance_name):
499
  def GetShellCommandForConsole(instance):
500 500
    """Return a command for connecting to the console of an instance.
501 501

  
502 502
    """

Also available in: Unified diff