Skip to content

Commit

Permalink
Update gnocchi/cli/api.py
Browse files Browse the repository at this point in the history
Co-authored-by: gord chung <[email protected]>
  • Loading branch information
rafaelweingartner and chungg authored May 29, 2024
1 parent b4c9a6d commit f428adb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gnocchi/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ def api():
"No need to pass `--' in gnocchi-api command line anymore, "
"please remove")

uwsgi = conf.api.uwsgi_path
if not uwsgi:
uwsgi = spawn.find_executable("uwsgi")
uwsgi = conf.api.uwsgi_path or spawn.find_executable("uwsgi")
if not uwsgi:
LOG.error("Unable to find `uwsgi'.\n"
"Be sure it is installed and in $PATH.")
Expand Down

0 comments on commit f428adb

Please sign in to comment.