You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
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
5 years ago
..
cli fix collection adjacent loading with --playbook-dir (#56194) 5 years ago
compat Update bundled copy of selectors2 from 1.1.0 to 1.1.1 (#55457) 6 years ago
config Config toggle for duplicate dict key warnings (fixes #56799) (#56805) 5 years ago
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 6 years ago
executor Always keep subset data for callbacks (#56881) 5 years ago
galaxy Update galaxy cli metadata file templates (#51398) 6 years ago
inventory The InventoryData class does not have a get_vars method and InventoryManager's get_vars never appears to have been used (#56804) 5 years ago
module_utils Handle openstacksdk < 0.10.0: fix AttributeError (#50285) 5 years ago
modules Add dns_domain into os_network.py (#56453) 5 years ago
parsing Config toggle for duplicate dict key warnings (fixes #56799) (#56805) 5 years ago
playbook Prevent vars premature templating (#56117) 5 years ago
plugins Handle openstacksdk < 0.10.0: fix AttributeError (#50285) 5 years ago
template Templar: encapsulate _available_variables (#55435) 5 years ago
utils Fix loading namespaced doc_fragments from collections (#55249) 5 years ago
vars Templar: encapsulate _available_variables (#55435) 5 years ago
__init__.py
constants.py removed previouslly deprecated settings (#55662) 5 years ago
context.py Become plugins (#50991) 6 years ago
release.py Cleanup the tree for post-2.8-branch 6 years ago