@staticmethod
    def make_resource_config(config, position, cloud_config, resource_name):
        resource_config = copy.deepcopy(cloud_config)
        resource_config[resource_name] = utils.ext_dict()
        for k, v in getattr(config,
                            '%s_%s' % (position, resource_name)).iteritems():
            resource_config[resource_name][k] = v

        return resource_config
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/cloud/cloud.py/Cloud.make_resource_config/original