diff --git a/gnocchi/cli/api.py b/gnocchi/cli/api.py index e934362c5..8de26b455 100644 --- a/gnocchi/cli/api.py +++ b/gnocchi/cli/api.py @@ -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.")