mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 17:11:23 -07:00
influxdb_user: Fixed unhandled exception on invalid login credentials (#50134)
This commit is contained in:
parent
f76d7bdbef
commit
bcae7f24cb
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- influxdb_user - Fixed unhandled exception when using invalid login credentials (https://github.com/ansible/ansible/issues/50131)
|
|
@ -94,7 +94,7 @@ def find_user(module, client, user_name):
|
||||||
if user['user'] == user_name:
|
if user['user'] == user_name:
|
||||||
user_result = user
|
user_result = user
|
||||||
break
|
break
|
||||||
except ansible.module_utils.urls.ConnectionError as e:
|
except (ansible.module_utils.urls.ConnectionError, influx.exceptions.InfluxDBClientError) as e:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
return user_result
|
return user_result
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue