Prepare for rally-openstack package

All plugins from rally.plugins.openstack will move to the separate repo
soon. This patch add additional to prevent a conflict while discovering
the similar plugins from different places.

Change-Id: I09ccec8729861ee3db8afc766ddc75bf0dadbbfa
This commit is contained in:
Andrey Kurilin 2017-07-05 20:16:08 +03:00
parent 47665b567c
commit 01dc3856e1

View File

@ -29,7 +29,13 @@ def load():
if not PLUGINS_LOADED:
discover.import_modules_from_package("rally.deployment.engines")
discover.import_modules_from_package("rally.deployment.serverprovider")
discover.import_modules_from_package("rally.plugins")
discover.import_modules_from_package("rally.plugins.common")
try:
import rally_openstack # noqa
except ImportError:
# print warnings when rally_openstack will be released
discover.import_modules_from_package("rally.plugins.openstack")
discover.import_modules_from_package("rally.plugins.workload")
discover.import_modules_by_entry_point()