def _get_size(vm_):
    sizes = avail_sizes()

    vm_size = str(config.get_cloud_config_value(
        'size', vm_, __opts__, search_global=False
    ))

    if not vm_size:
        raise SaltCloudNotFound('No size specified for this instance.')

    if vm_size in sizes.keys():
        return vm_size

    raise SaltCloudNotFound(
        'The specified size, \'{0}\', could not be found.'.format(vm_size)
    )
Return the VM's size. Used by create().
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/_get_size