extending python-neutronclient commands with an external module fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
High
|
Mathieu Rohon |
Bug Description
The framework to extend python-
So in an external module I've added an entry_point in my setup.cfg :
[entry_points]
neutronclient.
my_ext = my_module
my_module is a python file containing classes which extend NeutronClientEx
...
class myExt(extension
resource = 'my_ext'
resource_plural = '%ss' % resource
object_path = '/%s' % resource_plural
resource_path = '/%s/%%s' % resource_plural
versions = ['2.0']
class myExtList(
shell_command = 'my-ext-list'
list_columns = ['id']
pagination_
sorting_support = True
When I try to use the command :
#neutron my-ext-list
It fails with the error "unknown command"
After using a debugger, I can see that my module is correctly loaded, the command is correctly registered in the command manager of cliff, but it isn't registered in the command dict of the NeutronShell class
Changed in python-neutronclient: | |
milestone: | none → 2.3.12 |
importance: | Undecided → High |
Changed in python-neutronclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/163478
Review: https:/