Revision 55cc0a44 lib/hypervisor/hv_fake.py

b/lib/hypervisor/hv_fake.py
30 30
from ganeti import utils
31 31
from ganeti import constants
32 32
from ganeti import errors
33
from ganeti import objects
33 34
from ganeti.hypervisor import hv_base
34 35

  
35 36

  
......
204 205
    return result
205 206

  
206 207
  @classmethod
207
  def GetShellCommandForConsole(cls, instance, hvparams, beparams):
208
    """Return a command for connecting to the console of an instance.
208
  def GetInstanceConsole(cls, instance, hvparams, beparams):
209
    """Return information for connecting to the console of an instance.
209 210

  
210 211
    """
211
    return "echo Console not available for fake hypervisor"
212
    return objects.InstanceConsole(instance=instance.name,
213
                                   kind=constants.CONS_MESSAGE,
214
                                   message=("Console not available for fake"
215
                                            " hypervisor"))
212 216

  
213 217
  def Verify(self):
214 218
    """Verify the hypervisor.

Also available in: Unified diff