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:
parent
8aed5feab8
commit
82ebddca00
@ -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)
|
||||
|
6
releasenotes/notes/entrypoint-3.8-0597d159889042f7.yaml
Normal file
6
releasenotes/notes/entrypoint-3.8-0597d159889042f7.yaml
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user