heat/heat/common
Takashi Kajinami 9e91fa22c3 Fix AttributeError in Python 3.8
The importlib-metadata package was imported to the core Python since
Python 3.8, and stevedore uses the standard library implementation
instead of the 3rd party package in Python 3.8 and later. However
the implementation available in Python 3.8 is quite old and especially
it does not include the change which added the module attribute[1].

This change makes sure we avoid referring to that attribute if it does
not exist, to avoid AttributeError in Python 3.8.

[1] dfc96137ac

Backport note:
This change includes an additional fix for Python < 3.8, which uses
the 3rd party importlib-metadata.

Story: 2010095
Task: 45650
Change-Id: Ieba5f353b0fe8a9b187bac1f6ff1b3a8f3b896b3
(cherry picked from commit eec1f92bc0)
(cherry picked from commit ecca0fcbeb)
(cherry picked from commit b8e27f7c47)
2022-08-17 06:22:20 +00:00
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 20:29:31 +08:00
auth_password.py Make standalone heat work with keystone v3 2017-07-17 02:59:03 +00:00
auth_plugin.py Add tools to get keystone auth plugin 2019-03-12 18:15:07 +08:00
auth_url.py Make auth_url lookup dynamic 2016-03-04 17:35:52 +01:00
cache.py Fix missing space in help text for caching option. 2018-07-17 06:42:38 +00:00
config.py Merge "Allow turning off max_stacks limit" 2021-03-15 14:05:32 +00:00
context.py Set context username if session client is used 2020-07-06 19:34:52 +00:00
crypt.py Logging Consistency 2020-04-27 06:34:31 +00:00
custom_backend_auth.py Fix some inconsistency in docstrings 2015-12-29 01:40:42 +08:00
endpoint_utils.py Fix lower-constraints tox env to use proper constraints 2019-04-10 09:11:56 +05:30
environment_format.py Add new environment section for merge strategies 2016-08-19 08:54:30 +05:30
environment_util.py Merge "Log parameters merged" into stable/wallaby 2022-07-18 14:07:33 +00:00
exception.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
grouputils.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
i18n.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
identifier.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
lifecycle_plugin_utils.py Fix duplicated words issue like "can be be used" 2020-01-06 11:27:08 +08:00
messaging.py Use oslo_messaging for JsonPayloadSerializer 2018-09-07 02:25:36 +08:00
netutils.py Add dns constraints 2016-07-26 10:01:06 +05:30
noauth.py noauth: only set token_info if set 2017-11-06 16:40:13 +11:00
param_utils.py Convert props form delimited params to lists 2016-08-26 17:43:33 +05:30
password_gen.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
plugin_loader.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
pluginutils.py Fix AttributeError in Python 3.8 2022-08-17 06:22:20 +00:00
policy.py Update pep8 rules 2020-04-30 16:33:43 +02:00
profiler.py Remove log translations 2017-03-25 17:11:50 +08:00
serializers.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
service_utils.py Show an engine as down if service record is not updated twice 2019-07-24 03:16:57 +00:00
short_id.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
template_format.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
timeutils.py Use correct raw string format 2017-11-16 18:23:58 -05:00
urlfetch.py Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
wsgi.py Use err.errno to access errno for socket errors 2020-09-26 21:33:03 -07:00