Commit Graph

8 Commits

Author SHA1 Message Date
nico 044e0334d2
flake8 fixup
* fix trailing/ leading whitespaces
* fix None comparison to use is
+ add noqa ignore statements for the influx escape replacements
+ add noqa ignore statements around the bare excepts

TODO: This is only a temporary fix for most of the bare excepts, we need further specify those.
2020-06-29 18:59:16 +02:00
nico 5f0cb289c1
black reformat
* black reformatted the code
2020-06-29 11:03:49 +02:00
nico 71440b7a8f
pep8 and friends
* add default logging NullHandler
* fix indentation mismatch
* rename control to calls to better point out its purpose
* rename class to EjabberdApiCalls to better point out it purpose
* changed get_nodes to an internal support method
2020-06-17 15:47:31 +02:00
genofire 38a7b17180 add cleanup.py 2020-06-10 07:24:35 +02:00
nico 331adaf820
fixup
* update version regex to succesfully match only the version string
+ add missing import
2020-06-10 00:40:22 +02:00
genofire 52dc918125 fix versionstring parsing 2020-06-09 20:19:30 +02:00
nico 5cf6889799
fix version string being unpopulated
* fix version string being empty
+ add error code 17 to the README
resolves #2

Error Code 17 means one of two things
a) the configured user credentials are not correct, therefore the user is not able to properly login
b) the configured user does not have the correct permissions to interact with the api
2020-06-09 17:55:00 +02:00
nico d44e4021fe
code cleanup
* split up api and metrics class
* revamped file nameming to better resemble their function
* update prometheus and influx files

* fixed version regex to not break on - in version string
2020-04-28 14:11:49 +02:00