

def init_resources(self, cloud_config):
    resources = self.resources
    self.resources = dict()
    self.rbd_util = rbd_util.RbdUtil(getattr(self.config, ('%s' % self.position)), self.config.migrate)
    self.qemu_img = qemu_img.QemuImg(getattr(self.config, ('%s' % self.position)), self.config.migrate)
    self.ssh_util = ssh_util.SshUtil(getattr(self.config, ('%s' % self.position)), self.config.migrate)
    ident_conf = self.make_resource_config(self.config, self.position, cloud_config, 'identity')
    self.mysql_connector = self.get_db_method_create_connection('identity', ident_conf)
    identity = resources['identity'](ident_conf, self)
    self.resources['identity'] = identity
    skip_initialization = ['identity']
    if (not self.config.src_objstorage.service):
        skip_initialization.append('objstorage')
    for resource in resources:
        if (resource not in skip_initialization):
            resource_config = self.make_resource_config(self.config, self.position, cloud_config, resource)
            self.mysql_connector = self.get_db_method_create_connection(resource, resource_config)
            self.resources[resource] = resources[cloud_config](resource_config, self)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/cloud/cloud.py Cloud.init_resources/VarMisuse@255/338 `resource`->`cloud_config`