Skip to content

Commit

Permalink
cli: load uwsgi plugins if needed
Browse files Browse the repository at this point in the history
Some distro build uwsgi with dynamic plugins.

This change makes our cli working with and without uwsgi dynamic
plugins.

Closes #478

(cherry picked from commit 032e8b1)
  • Loading branch information
Mehdi Abaakouk authored and pastamaker[bot] committed Nov 22, 2017
1 parent 021962f commit 059bd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnocchi/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def api():
workers = utils.get_default_workers()

args = [
"--if-not-plugin", "python", "--plugin", "python", "--endif",
"--if-not-plugin", "http", "--plugin", "http", "--endif",
"--http", "%s:%d" % (conf.host or conf.api.host,
conf.port or conf.api.port),
"--master",
Expand Down

0 comments on commit 059bd22

Please sign in to comment.