community.general/lib/ansible/modules
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
..
cloud Update metadata to 1.1 2017-08-15 23:12:08 -07:00
clustering Update metadata to 1.1 2017-08-15 23:12:08 -07:00
commands Update metadata to 1.1 2017-08-15 23:12:08 -07:00
crypto openssl_csr: Ensure array comparison is deterministic (#28265) 2017-08-16 14:35:25 +02:00
database Update metadata to 1.1 2017-08-15 23:12:08 -07:00
files Update metadata to 1.1 2017-08-15 23:12:08 -07:00
identity Update metadata to 1.1 2017-08-15 23:12:08 -07:00
inventory Update metadata to 1.1 2017-08-15 23:12:08 -07:00
messaging Update metadata to 1.1 2017-08-15 23:12:08 -07:00
monitoring Update metadata to 1.1 2017-08-15 23:12:08 -07:00
net_tools Update metadata to 1.1 2017-08-15 23:12:08 -07:00
network refactors nxos_vrf_af module (#28208) 2017-08-16 10:11:12 -04:00
notification Update metadata to 1.1 2017-08-15 23:12:08 -07:00
packaging Update metadata to 1.1 2017-08-15 23:12:08 -07:00
remote_management Update metadata to 1.1 2017-08-15 23:12:08 -07:00
source_control Update metadata to 1.1 2017-08-15 23:12:08 -07:00
storage Update metadata to 1.1 2017-08-15 23:12:08 -07:00
system alternatives: handle absent link, add integration tests (#27967) 2017-08-16 10:35:56 -04:00
utilities Update metadata to 1.1 2017-08-15 23:12:08 -07:00
web_infrastructure Update metadata to 1.1 2017-08-15 23:12:08 -07:00
windows Update metadata to 1.1 2017-08-15 23:12:08 -07:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00