mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Handle error message from psycopg2 using to_native (#32371)
This fix adds handling of error/exception message using to_native API instead of decoding. Also, fixes PEP8 errors. Fixes: #31825 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
61ca2a711d
commit
51c5b51ea3
2 changed files with 20 additions and 38 deletions
|
@ -135,7 +135,6 @@ lib/ansible/modules/database/mssql/mssql_db.py
|
|||
lib/ansible/modules/database/postgresql/postgresql_db.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_ext.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_lang.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_privs.py
|
||||
lib/ansible/modules/database/postgresql/postgresql_schema.py
|
||||
lib/ansible/modules/database/vertica/vertica_configuration.py
|
||||
lib/ansible/modules/database/vertica/vertica_facts.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue