Browse Source

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
tags/5.3.1^0
Felix Yan 2 months ago
committed by Monty Taylor
parent
commit
82ebddca00
2 changed files with 10 additions and 1 deletions
  1. +4
    -1
      openstackclient/common/clientmanager.py
  2. +6
    -0
      releasenotes/notes/entrypoint-3.8-0597d159889042f7.yaml

+ 4
- 1
openstackclient/common/clientmanager.py View File

@@ -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
- 0
releasenotes/notes/entrypoint-3.8-0597d159889042f7.yaml View 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…
Cancel
Save