Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)