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

* 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>
(cherry picked from commit b89eb87ad6)

Co-authored-by: Xabier Napal <xabiernapal@pm.me>
This commit is contained in:
patchback[bot] 2021-05-17 19:18:46 +00:00 committed by GitHub
commit 99e0f8a3a0
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).