community.general/lib/ansible
Pilou 016cd0691c alternatives: handle absent link, add integration tests (#27967)
* alternatives: add integration tests

* alternatives: handle absent link (fix AttributeError)

Error occurred at least on Debian Stretch and OpenSuse 42.2:
Traceback (most recent call last):
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 161, in <module>
    main()
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 113, in main
    current_path = current_path_regex.search(display_output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

update-alternatives stdout sample:
dummy - manual mode
  link best version is /usr/bin/dummy1
  link currently absent
  link dummy is /usr/bin/dummy

* alternatives: PEP 8 fixes

* alternatives: fix copyright in integration tests

* alternatives: nested loops handle more than 2 items

Thanks to Michael Scherer (@mscherer) for pointing that.

* alternatives: enable integration tests
2017-08-16 10:35:56 -04:00
..
cli metadata 1.1 2017-08-15 23:12:08 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
module_utils eos_user fix username param (#28114) 2017-08-16 12:08:59 +05:30
modules alternatives: handle absent link, add integration tests (#27967) 2017-08-16 10:35:56 -04:00
parsing metadata 1.1 2017-08-15 23:12:08 -07:00
playbook Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
plugins updates network parse_cli filter to handle blocks from output (#28245) 2017-08-16 08:59:14 -04:00
template Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
utils Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
vars Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00