mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
postgresql: remove depricated lib (#56641)
This commit is contained in:
parent
27dcf8aaab
commit
86354ff1fb
3 changed files with 3 additions and 101 deletions
|
@ -40,20 +40,6 @@ from ansible.module_utils.six import iteritems
|
|||
from distutils.version import LooseVersion
|
||||
|
||||
|
||||
class LibraryError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def ensure_libs(sslrootcert=None):
|
||||
if not HAS_PSYCOPG2:
|
||||
raise LibraryError('psycopg2 is not installed. we need psycopg2.')
|
||||
if sslrootcert and psycopg2.__version__ < '2.4.3':
|
||||
raise LibraryError('psycopg2 must be at least 2.4.3 in order to use the ca_cert parameter')
|
||||
|
||||
# no problems
|
||||
return None
|
||||
|
||||
|
||||
def postgres_common_argument_spec():
|
||||
"""
|
||||
Return a dictionary with connection options.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue