

def createReservation(self, function_name, **kwargs):
    LOGGER.debug(('%s Called' % function_name))
    if (function_name == 'schedulerserver/remoteaddtoheap'):
        LOGGER.debug('remoteaddtoheap has been called')
        LOGGER.debug(('kwargs: %s' % repr(kwargs)))
        if set(('uuid', 'type')).issubset(set(kwargs)):
            LOGGER.debug(('\tUUID: %s\n\tType: %s' % (kwargs['uuid'], kwargs['type'])))
            if kwargs['uuid']:
                self.addToHeap(kwargs['uuid'], kwargs['type'])
            return {
                
            }
        else:
            return {
                'error': 'Required parameters are uuid and type',
            }
    elif (function_name == 'schedulerserver/remoteremovefromheap'):
        LOGGER.debug('remoteremovefromheap has been called')
        LOGGER.debug(('kwargs: %s' % repr(kwargs)))
        if ('uuid' in kwargs):
            LOGGER.debug(('UUID: %s' % kwargs['uuid']))
            if kwargs['uuid']:
                self.removeFromHeap(kwargs['uuid'])
            return {
                
            }
        else:
            return {
                'error': 'Required parameters are uuid',
            }
    return

dataset/ETHPy150Open wehriam/awspider/awspider/servers2/scheduler.py SchedulerServer.createReservation/original