mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-17 22:01:07 -07:00
postgresql modules: missing_required_libs, removed excess param mapping (#55506)
This commit is contained in:
parent
62badd76a5
commit
0ff67d0a1c
7 changed files with 9 additions and 29 deletions
|
@ -78,7 +78,7 @@ try:
|
|||
except ImportError:
|
||||
HAS_PSYCOPG2 = False
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||
from ansible.module_utils.database import SQLParseError
|
||||
from ansible.module_utils.postgres import postgres_common_argument_spec
|
||||
from ansible.module_utils._text import to_native
|
||||
|
@ -142,7 +142,7 @@ def main():
|
|||
)
|
||||
|
||||
if not HAS_PSYCOPG2:
|
||||
module.fail_json(msg="The python psycopg2 module is required")
|
||||
module.fail_json(msg=missing_required_lib('psycopg2'))
|
||||
|
||||
sslrootcert = module.params["ca_cert"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue