Fix compatibility issue in 5.3

The offending entry point object looks like:
EntryPoint(name='compute', value='openstackclient.compute.client',
group='openstack.cli.base')

Story: 2007917
Task: 40323
Change-Id: I0f3cc62e23efdc14203ce6645581d5ba5dbf7fa0
This commit is contained in:
Felix Yan 2020-07-14 01:02:00 +08:00 committed by Monty Taylor
parent 8aed5feab8
commit 82ebddca00
2 changed files with 10 additions and 1 deletions
openstackclient/common
releasenotes/notes

@ -154,7 +154,10 @@ def get_plugin_modules(group):
try:
module_name = ep.entry_point.module_name
except AttributeError:
module_name = ep.entry_point.module
try:
module_name = ep.entry_point.module
except AttributeError:
module_name = ep.entry_point.value
try:
module = importlib.import_module(module_name)

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue with python 3.8 and entrypoint loading where the
new builtin importlib entrypoint support had a different
attribute api than expected.