community.general/lib/ansible/modules/net_tools
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
..
basics uri: check unexpected failure doesn't occur when file cannot be saved (#45824) 2019-02-04 10:29:05 -05:00
exoscale Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
infinity Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
ldap ldap_attr bugfix (#48009) 2018-11-05 17:20:37 +00:00
netbox Fixes and refactor netbox device module (#50672) 2019-01-18 20:32:16 +00:00
nios PR to implement support feature for creating NIOS network container (#51168) 2019-01-23 19:21:00 +05:30
__init__.py
cloudflare_dns.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
dnsimple.py v2 dnsimple api uses type vs record_type (#39301) 2018-12-04 12:25:29 +00:00
dnsmadeeasy.py DNS made easy module: add sandbox parameter to utilize sandbox API (#44639) 2018-08-30 04:35:57 +02:00
haproxy.py E325 Removal - Part II (#49196) 2018-11-28 13:55:52 +05:30
ip_netns.py fix error checking if netns exists (#47397) 2018-10-22 13:58:48 -04:00
ipify_facts.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
ipinfoio_facts.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
lldp.py Clean up non-standard module shebangs. 2018-03-21 11:04:55 -07:00
netcup_dns.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nmcli.py Modified description in nmcli module doc (#50661) 2019-01-21 17:20:55 +00:00
nsupdate.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
omapi_host.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
snmp_facts.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00