commit ea63b3b40f0abddce22a02f79ff9275d55d37407
Author: Jay Pipes <email address hidden>
Date: Tue Oct 31 16:03:33 2017 -0400
finish refactor AllocCandidates._get_by_filters()
This patch completes the refactoring of the
AllocationCandidates._get_by_filters() mega-method by splitting out the
remaining pieces of code that handle the construction of the
part-shared, part-non-shared allocation requests for when there are
sharing providers in a deployment.
The split-out _alloc_candidates_with_shared() is still a long, complex
method and I'll continue trying to reduce the complexity there and break
functions out of it further. I did uncomplicate a part of the function
with use of the itertools.product() function to replace a faulty use of
zip() against a list of allocation request resource lists.
Reviewed: https:/ /review. openstack. org/516782 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ea63b3b40f0 abddce22a02f79f f9275d55d37407
Committed: https:/
Submitter: Zuul
Branch: master
commit ea63b3b40f0abdd ce22a02f79ff927 5d55d37407
Author: Jay Pipes <email address hidden>
Date: Tue Oct 31 16:03:33 2017 -0400
finish refactor AllocCandidates ._get_by_ filters( )
This patch completes the refactoring of the andidates. _get_by_ filters( ) mega-method by splitting out the
AllocationC
remaining pieces of code that handle the construction of the
part-shared, part-non-shared allocation requests for when there are
sharing providers in a deployment.
The split-out _alloc_ candidates_ with_shared( ) is still a long, complex
method and I'll continue trying to reduce the complexity there and break
functions out of it further. I did uncomplicate a part of the function
with use of the itertools.product() function to replace a faulty use of
zip() against a list of allocation request resource lists.
Closes-Bug: #1730730 7ccd26fcc638620 7e4a25300d4
Change-Id: Ibcfd1a28f36d3c