~cjwatson/prometheus-registration/+git/layer-promreg-client:strip-authtoken

Last commit made on 2017-03-14
Get this branch:
git clone -b strip-authtoken https://git.launchpad.net/~cjwatson/prometheus-registration/+git/layer-promreg-client
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch information

Recent commits

937732c... by Colin Watson

Strip trailing newlines from promreg_authtoken

It's convenient to include the key from a secrets directory using
juju-deployer's `include-file:` syntax, but that tends to leave any
trailing newline from the secret file in the configuration, which breaks
with an "Invalid header value" exception in `http.client`. Stripping
the newline here is a bit friendlier.

4c91c19... by Tim Kuhlman

Support pulling the model name rather than environment for Juju2

617da5f... by Tim Kuhlman

Remove the requirement for python-netifaces

50946f3... by Tim Kuhlman

Finished unit tests

1e02b2d... by Tim Kuhlman

Added initial unit tests

917e295... by Tim Kuhlman

Properly deal with no promreg_url being set.

33024e4... by Tim Kuhlman

Allow any 200 status code

8051c81... by Tim Kuhlman

Log don't error on missing promreg_url

92b3b48... by Tim Kuhlman

Initial working version

82bc6c4... by Tim Kuhlman

Initial untested implementation