influxdb_user: allow creation of first user with auth enabled (#2364) (#2368)

* influxdb_user: allow creation of first user with auth enabled (#2364)

* handle potential exceptions while parsing influxdb client error

* fix changelog

Co-authored-by: Felix Fontein <felix@fontein.de>

* influxdb_user: use generic exceptions to be compatible with python 2.7

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Xabier Napal 2021-05-17 21:00:35 +02:00 committed by GitHub
commit b89eb87ad6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,5 @@
bugfixes:
- influxdb_user - allow creation of admin users when InfluxDB authentication
is enabled but no other user exists on the database. In this scenario,
InfluxDB 1.x allows only ``CREATE USER`` queries and rejects any other query
(https://github.com/ansible-collections/community.general/issues/2364).