~citrix-openstack/nova/xenapi

« back to all changes in this revision

Viewing changes to nova/virt/xenapi/fake.py

merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
        #Always return 12GB available
291
291
        return 12 * 1024 * 1024 * 1024
292
292
 
 
293
    def host_call_plugin(*args):
 
294
        return 'herp'
 
295
 
293
296
    def xenapi_request(self, methodname, params):
294
297
        if methodname.startswith('login'):
295
298
            self._login(methodname, params)
401
404
                field in _db_content[cls][ref]):
402
405
                return _db_content[cls][ref][field]
403
406
 
404
 
        LOG.debuug(_('Raising NotImplemented'))
 
407
        LOG.debug(_('Raising NotImplemented'))
405
408
        raise NotImplementedError(
406
409
            _('xenapi.fake does not have an implementation for %s or it has '
407
410
            'been called with the wrong number of arguments') % name)