Ejemplo n.º 1
0
def remote_run_node(node_id):
  try:
    nodes = get_nodes_list(NODESLIST_FILE)
    my_uuid = get_file_content(UUID_FILE)
    return remote_run_generic(nodes, my_uuid, [node_id], False, request.form)
  except Exception as e:
    print(traceback.format_exc())
    return format_error(e, API_DEBUGINFO)
Ejemplo n.º 2
0
def remote_run_all():
    try:
        nodes = get_nodes_list(NODESLIST_FILE)
        my_uuid = get_file_content(UUID_FILE)
        return remote_run_generic(nodes, my_uuid, None, True, request.form)
    except Exception as e:
        print(traceback.format_exc())
        return format_error(e, API_DEBUGINFO)