community.general/lib/ansible/plugins
Pilou 4f25435cd2 Handle openstacksdk < 0.10.0: fix AttributeError (#50285)
* openstacksdk < 0.10.0: fix AttributeError

`openstack.version.__version__` expression raises an `AttributeError`
exception when openstacksdk < 0.10.0 is used. `openstack.version` is
now imported as a module, which works for all openstacksdk versions.

Error was:

    The full traceback is:
    Traceback (most recent call last):
      File "$HOME/.ansible/tmp/ansible-tmp-1545612308.8-46792777824159/AnsiballZ_os_security_group.py", line 113, in <module>
        _ansiballz_main()
      File "$HOME/.ansible/tmp/ansible-tmp-1545612308.8-46792777824159/AnsiballZ_os_security_group.py", line 105, in _ansiballz_main
        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
      File "$HOME/.ansible/tmp/ansible-tmp-1545612308.8-46792777824159/AnsiballZ_os_security_group.py", line 48, in invoke_module
        imp.load_module('__main__', mod, module, MOD_DESC)
      File "/tmp/ansible_os_security_group_payload_keFTIJ/__main__.py", line 163, in <module>
      File "/tmp/ansible_os_security_group_payload_keFTIJ/__main__.py", line 115, in main
      File "/tmp/ansible_os_security_group_payload_keFTIJ/ansible_os_security_group_payload.zip/ansible/module_utils/openstack.py", line 121, in openstack_cloud_from_module
    AttributeError: 'module' object has no attribute 'version'

* Add missing space & dot in error message

* Always require openstacksdk >= 0.12
2019-05-24 10:27:47 -05:00
..
action Templar: encapsulate _available_variables (#55435) 2019-05-20 11:49:54 -04:00
become Keep machinectl from parsing options of cmd (#56572) 2019-05-23 16:01:40 -04:00
cache Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00
callback added missing version_added 2019-05-22 17:04:36 -04:00
cliconf Fix eos_support_session logic (#56524) 2019-05-16 11:28:19 -04:00
connection Preserve ssh error (#56460) 2019-05-23 10:03:35 -04:00
doc_fragments Handle openstacksdk < 0.10.0: fix AttributeError (#50285) 2019-05-24 10:27:47 -05:00
filter Add seed parameter to random_mac filter (#51841) 2019-05-16 13:41:08 -04:00
httpapi eos_config: Fix test issues (#56180) 2019-05-09 18:02:24 +05:30
inventory Adding example for add host to groups (#56756) 2019-05-22 14:50:14 -05:00
lookup lookup: consul_kv: Add datacenter parameter (#56647) 2019-05-22 08:02:39 +02:00
netconf Move missing library abort to use rather than import for netconf (#55384) 2019-04-23 09:19:47 -04:00
shell removed previouslly deprecated settings (#55662) 2019-05-15 16:36:30 -04:00
strategy Be sure to use the active state when checking for any_errors_fatal (#55779) 2019-04-26 10:31:30 -05:00
terminal Fixes #53277 (#53285) 2019-03-26 18:10:45 +05:30
test Simplify regex filter code (#50202) 2019-02-03 15:10:16 -05:00
vars Fix encoding issues with file paths. (#50830) 2019-01-14 13:06:47 -08:00
__init__.py Misc typo fixes (#53284) 2019-03-04 15:30:18 -05:00
loader.py Fix loading namespaced doc_fragments from collections (#55249) 2019-05-02 21:15:57 -04:00