[PATCH] D35501: Add lnt commandline REST client

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 12:58:19 PDT 2017


MatzeB created this revision.
Herald added a subscriber: mcrosier.

Note: I am mainly putting the review here in case we want to bikeshed the names of the commands or the names/style of configuration. I will work on the unittests while this review is going on.

This adds the following commands to lnt, so users can perform some data cleanup on LNT servers through the REST api without having ssh+database access on the server. (REST authentication works through an API token, that server administrators can optionally set).

  $ > bin/lnt admin --help
  ...
  Commands:
    create-config
    get-machine
    list-machines
    rename-machine
    rm-machine
    rm-run

The commands attempt to load `lntadmin.yaml` from the current directory, so you can prepare this configuration with all your server information, authentication and api tokens and don't need to retype it with every command.


Repository:
  rL LLVM

https://reviews.llvm.org/D35501

Files:
  lnt/lnttool/admin.py
  lnt/lnttool/main.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35501.106915.patch
Type: text/x-patch
Size: 8534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/c6f1c207/attachment.bin>


More information about the llvm-commits mailing list