HEPCloud / decisionengine_modules

Apache License 2.0
2 stars 19 forks source link

Need emergency patch NERSC/util/newt.py #460

Closed StevenCTimm closed 1 year ago

StevenCTimm commented 1 year ago

[root@hepcsvc03 util]# diff newt.py newt.py.1.7.4 83,103c83,102 < query = ('accounts(username: "{}") {{ projectId,repoName,repoType,currentAlloc,usedAlloc,users {{ uid,name,firstname,lastname,middlename,userAlloc,userAllocPct,usedAlloc}} }}').format(username) < # query = < # "accounts(username: \\"{}\\") {{ " < # " projectId, " < # " repoName, " < # " repoType, " < # " currentAlloc, " < # " usedAlloc, " < # " users {{ " < # " uid, " < # " name, " < # " firstname, " < # " lastname, " < # " middlename, " < # " userAlloc, " < # " userAllocPct, " < ## " usedAlloc " < # " }} " < # "}}" < # ).format(username) < # Remove whitespace to make more readable

    query = (
        "accounts(username: \\\"{}\\\") {{ "
        "   projectId, "
        "   repoName, "
        "   repoType, "
        "   currentAlloc, "
        "   usedAlloc, "
        "   users {{ "
        "       uid, "
        "       name, "
        "       firstname, "
        "       lastname, "
        "       middlename, "
        "       userAlloc, "
        "       userAllocPct, "
        "       usedAlloc "
        "   }} "
        "}}"
    ).format(username)
    # Remove whitespace to make more readable

105d103 < print(query)