ansible/lib/ansible
Pilou 7a3582d651 uri: check unexpected failure doesn't occur when file cannot be saved (#45824)
* 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
..
cli unquote ev (#51560) 2019-01-31 16:55:10 -05:00
compat
config added missing version_added 2019-02-01 09:34:14 -05:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Fix performance issue with large task retries. (#51581) 2019-01-31 18:44:57 -05:00
galaxy Consistent typesetting of "GitHub" (#50929) 2019-01-15 14:53:04 +01:00
inventory make missing pattern ansibleerror (#51397) 2019-01-30 19:13:19 -05:00
module_utils Ovirt vm state running wait false (#51024) 2019-02-04 14:52:37 +00:00
modules uri: check unexpected failure doesn't occur when file cannot be saved (#45824) 2019-02-04 10:29:05 -05:00
parsing Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
playbook remove bare var handling in conditionals (#51030) 2019-01-30 15:00:24 -05:00
plugins Restconf HTTPAPI plugin and modules (#49476) 2019-02-04 09:28:26 -05:00
template Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
utils move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00
vars move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00
__init__.py
constants.py become_method: make dzdo more like sudo (#47946) 2018-12-04 18:24:32 -05:00
context.py Move the arguments module into cli/ and context_objects into utils 2019-01-03 18:12:23 -08:00
release.py