← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1934256] [NEW] neutron-lib duplicates os-resource-classes constants

 

Public bug reported:

The os-resource-classes lib is the official source of the standard
placement resource classes. The neutron-lib repo has a copy of those
constants[1]. Instead of duplicating the names, neutron-lib could depend
on the os-resource-classes lib and import the constants from there[2].

[1] https://github.com/openstack/neutron-lib/blob/63c8443a65db4c662237b8687beff19c3973b819/neutron_lib/placement/constants.py#L20-L21
[2] https://github.com/openstack/os-resource-classes/blob/3aead5dd249d753a85585879ea501e1f4f4bcd17/os_resource_classes/__init__.py#L59-L62

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: lib low-hanging-fruit

** Tags added: low-hanging-fruit

** Tags added: lib

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1934256

Title:
  neutron-lib duplicates os-resource-classes constants

Status in neutron:
  New

Bug description:
  The os-resource-classes lib is the official source of the standard
  placement resource classes. The neutron-lib repo has a copy of those
  constants[1]. Instead of duplicating the names, neutron-lib could
  depend on the os-resource-classes lib and import the constants from
  there[2].

  [1] https://github.com/openstack/neutron-lib/blob/63c8443a65db4c662237b8687beff19c3973b819/neutron_lib/placement/constants.py#L20-L21
  [2] https://github.com/openstack/os-resource-classes/blob/3aead5dd249d753a85585879ea501e1f4f4bcd17/os_resource_classes/__init__.py#L59-L62

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1934256/+subscriptions


Follow ups