Port arg specs from type='str' to type='path'

This commit is contained in:
Toshio Kuratomi 2017-10-07 14:57:13 -07:00
parent dc69af50dc
commit 75eed6a51a
12 changed files with 27 additions and 40 deletions

View file

@ -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'))