← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403586] [NEW] 'Controller.create' is too complex

 

Public bug reported:

The method Controller.create in nova/api/openstack/compute/servers.py
has a complexity of 46 that is the most complex in Nova code and it is
equal to the limit specified in tox.ini. This cause a pep8 error if
someone tries to add a new api for server create action. This fail is
unavoidable if one wants to keep consistency with the way other
extensions are loaded, so a refactoring is necessary to lower the
complexity.

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  The method Controller.create in nova/api/openstack/compute/servers.py
  has a complexity of 46 that is the most complex in Nova code and it is
  equal to the limit specified in tox.ini. This cause a pep8 error if
  someone tries to add a new api for server create action. This fail is
- unavoidable if one want keep consistency with the way other extensions
- are loaded, so a refractoring is necessary to lower the complexity.
+ unavoidable if one wants to keep consistency with the way other
+ extensions are loaded, so a refactoring is necessary to lower the
+ complexity.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1403586

Title:
  'Controller.create' is too complex

Status in OpenStack Compute (Nova):
  New

Bug description:
  The method Controller.create in nova/api/openstack/compute/servers.py
  has a complexity of 46 that is the most complex in Nova code and it is
  equal to the limit specified in tox.ini. This cause a pep8 error if
  someone tries to add a new api for server create action. This fail is
  unavoidable if one wants to keep consistency with the way other
  extensions are loaded, so a refactoring is necessary to lower the
  complexity.

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


Follow ups

References