def __init__(self): super(BlockStore, self).__init__() self.volume_class = Volume if FLAGS.fake_storage: self.volume_class = FakeVolume self._init_volume_group() self.keeper = datastore.Keeper('storage-')
def __init__(self, instance_id): """ loads an instance from the datastore if exists """ self.keeper = datastore.Keeper(FLAGS.instances_prefix) self.instance_id = instance_id self.initial_state = {} self.state = self.keeper[self.__redis_key] if self.state: self.initial_state = self.state else: self.state = {'state': 'pending', 'instance_id': instance_id, 'node_name': 'unassigned', 'project_id': 'unassigned', 'user_id': 'unassigned' }
def __init__(self): self.keeper = datastore.Keeper(FLAGS.instances_prefix)
def __init__(self, id, project_manager_id, description, member_ids): self.project_manager_id = project_manager_id super(Project, self).__init__(id, description, member_ids) self.keeper = datastore.Keeper(prefix="project-")
def __init__(self, _uri): self.keeper = datastore.Keeper('fakeldap') if self.keeper['objects'] is None: self.keeper['objects'] = {}
def setUp(self): super(KeeperTestCase, self).setUp() self.keeper = datastore.Keeper('test')
def __init__(self, *args, **kwargs): """ Create a new keeper instance for test keys. """ super(KeeperTestCase, self).__init__(*args, **kwargs) self.keeper = datastore.Keeper('test-')