Package and its dependencies are being imported in random
order which allows to import package and then get an error while
importing its dependency.
This patch uses OrderedDict ordered by topological sort instead
of regular dict to fix that.
Cyclic requirements are imported in random order.
Tests to check order of import are also added.
Reviewed: https:/ /review. openstack. org/321069 /git.openstack. org/cgit/ openstack/ python- muranoclient/ commit/ ?id=a4c351cb476 75459200707549d 278cc967bd21c6
Committed: https:/
Submitter: Jenkins
Branch: master
commit a4c351cb4767545 9200707549d278c c967bd21c6
Author: Valerii Kovalchuk <email address hidden>
Date: Wed May 25 18:18:40 2016 +0300
Import package and dependencies in correct order
Package and its dependencies are being imported in random
order which allows to import package and then get an error while
importing its dependency.
This patch uses OrderedDict ordered by topological sort instead
of regular dict to fix that.
Cyclic requirements are imported in random order.
Tests to check order of import are also added.
Change-Id: Ia6cb087679b3ae 4613ac3d1d19279 a9826e537ef
Closes-bug: #1585420
Co-Authored-By: ksnihyr <email address hidden>