def delete_module_request(handler): names = handler.get_arguments('name') log.debug('names: {0}'.format(names)) cmdq = InternalCommandQueue() for name in names: # Note: delete and unload from all slaves not just the executing one cmdq.add(handler.track.host, 'delete/module?name={0}'.format(name)) return delete_module(handler.request, names)
def delete_module_request(handler): names = handler.get_arguments('name') log.debug('names: {0}'.format(names)) cmdq = InternalCommandQueue() for name in names: # Note: delete and unload from all slaves not just the executing one cmdq.add(handler.track.host, 'delete/module?name={0}'.format(name)) return delete_module(handler.request, names)
def delete_modules_request(handler): result = list_module(handler, None) names = result['data']['info'].keys() log.debug('names: {0}'.format(names)) cmdq = InternalCommandQueue() for name in names: # Note: delete and unload from all slaves not just the executing one cmdq.add(handler.track.host, 'delete/module?name={0}'.format(name)) return delete_module(handler.request, names)
def delete_modules_request(handler): result = list_module(handler, None) names = result['data']['info'].keys() log.debug('names: {0}'.format(names)) cmdq = InternalCommandQueue() for name in names: # Note: delete and unload from all slaves not just the executing one cmdq.add(handler.track.host, 'delete/module?name={0}'.format(name)) return delete_module(handler.request, names)