mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Port arg specs from type='str' to type='path'
This commit is contained in:
parent
dc69af50dc
commit
75eed6a51a
12 changed files with 27 additions and 40 deletions
|
@ -365,14 +365,13 @@ def main():
|
|||
lc_collate=dict(default=""),
|
||||
lc_ctype=dict(default=""),
|
||||
state=dict(default="present", choices=["absent", "present", "dump", "restore"]),
|
||||
target=dict(default=""),
|
||||
target=dict(default="", type="path"),
|
||||
target_opts=dict(default=""),
|
||||
))
|
||||
|
||||
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
supports_check_mode = True
|
||||
supports_check_mode=True
|
||||
)
|
||||
|
||||
if not HAS_PSYCOPG2:
|
||||
|
@ -412,8 +411,6 @@ def main():
|
|||
if target == "":
|
||||
target = "{0}/{1}.sql".format(os.getcwd(), db)
|
||||
target = os.path.expanduser(target)
|
||||
else:
|
||||
target = os.path.expanduser(target)
|
||||
|
||||
try:
|
||||
pgutils.ensure_libs(sslrootcert=module.params.get('ssl_rootcert'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue