def _GetBestOfferingId(self, disk_size):

    disk_offerings = self.cs.list_disk_offerings()
    sorted_do = sorted(disk_offerings, key=lambda x: x['disksize'])

    for do in sorted_do:
        if int(do['disksize']) >= disk_size:
            return do['id']

    return None
Add an IRawPacketProtocol protocol
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/cloudstack/cloudstack_disk.py/CloudStackDisk._GetBestOfferingId--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/pair/ethernet.py/IEthernetProtocol.addProto