heat/heat
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
..
api Add separate policy for updates with no changes 2021-03-15 17:38:14 +05:30
cloudinit Detect EL8 platform-python 2021-08-18 13:58:49 +00:00
cmd Monkey patch original current_thread _active 2020-05-04 13:19:21 -04:00
common Fix AttributeError in Python 3.8 2022-08-17 06:22:20 +00:00
db Don't update status for replaced resource 2021-04-02 05:36:58 +00:00
engine Don't always replace FAILED ServerGroup resources 2022-07-15 15:18:17 +09:00
hacking Update hacking for Python3 2020-04-16 08:41:49 +02:00
httpd Always reset CONF when starting the wsgi app 2020-11-17 15:26:52 +00:00
locale Imported Translations from Zanata 2020-10-11 06:33:28 +00:00
objects Don't update status for replaced resource 2021-04-02 05:36:58 +00:00
policies Add separate policy for updates with no changes 2021-03-15 17:38:14 +05:30
rpc Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
scaling Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
tests Fix AttributeError in Python 3.8 2022-08-17 06:22:20 +00:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py change the dist name to 'openstack-heat' 2018-11-01 11:54:05 -04:00