1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/uri/tasks
Pilou 7a3582d651 uri: check unexpected failure doesn't occur when file cannot be saved ()
* uri: fix TypeError when file can't be saved

Fix the following exception (and others):

    Traceback (most recent call last):
      File "/home/lilou/debug_dir/__main__.py", line 604, in <module>
        main()
      File "/home/lilou/debug_dir/__main__.py", line 554, in main
        write_file(module, url, dest, content, resp)
      File "/home/lilou/debug_dir/__main__.py", line 320, in write_file
        module.fail_json(msg="Destination dir '%s' not writable" % os.path.dirname(dest), **resp)
    TypeError: fail_json() got multiple values for keyword argument 'msg'

I would rather remove **resp from returned values but this module is
flagged as stableinterface.

* Static imports are more straight forward and preferred unless dynamic inclusion is required.
2019-02-04 10:29:05 -05:00
..
main.yml uri: check unexpected failure doesn't occur when file cannot be saved () 2019-02-04 10:29:05 -05:00
redirect-all.yml Use HTTPS instead of HTTP for httpbin tests. () 2018-05-01 16:28:42 -07:00
redirect-none.yml Use HTTPS instead of HTTP for httpbin tests. () 2018-05-01 16:28:42 -07:00
redirect-safe.yml Use HTTPS instead of HTTP for httpbin tests. () 2018-05-01 16:28:42 -07:00
redirect-urllib2.yml Use HTTPS instead of HTTP for httpbin tests. () 2018-05-01 16:28:42 -07:00
unexpected-failures.yml uri: check unexpected failure doesn't occur when file cannot be saved () 2019-02-04 10:29:05 -05:00