Skip to content

Commit

Permalink
Adding st2common to virtualenv for tests. Fixing stevedore instance c…
Browse files Browse the repository at this point in the history
…reation on invoke.
  • Loading branch information
bigmstone committed May 7, 2018
1 parent 9c6b0ca commit 5aae4ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ requirements: virtualenv .sdist-requirements
# new version of requests) which we cant resolve at this moment
$(VIRTUALENV_DIR)/bin/pip install "prance==0.6.1"

# Install st2common to register metrics drivers
(cd ${ROOT_DIR}/st2common; ${ROOT_DIR}/$(VIRTUALENV_DIR)/bin/python setup.py develop)

# Some of the tests rely on submodule so we need to make sure submodules are check out
git submodule update --init --recursive

Expand Down
2 changes: 1 addition & 1 deletion st2common/st2common/util/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,5 @@ def get_plugin_instance(namespace, name):
"""
from stevedore.driver import DriverManager

manager = DriverManager(namespace=namespace, name=name)
manager = DriverManager(namespace=namespace, name=name, invoke_on_load=True)
return manager.driver

0 comments on commit 5aae4ae

Please sign in to comment.