diff --git a/releasenotes/notes/fix-pip-install-user-5f871f67433e465a.yaml b/releasenotes/notes/fix-pip-install-user-5f871f67433e465a.yaml new file mode 100644 index 0000000000..90689f9cfc --- /dev/null +++ b/releasenotes/notes/fix-pip-install-user-5f871f67433e465a.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with executing ``kolla-ansible`` when installed via ``pip + install --user``. `LP#1915527 + `__ diff --git a/tools/kolla-ansible b/tools/kolla-ansible index dc30fa7c76..56e675e8ae 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -75,6 +75,8 @@ function find_base_dir { BASEDIR=/usr/share/kolla-ansible elif [[ ${dir_name} == "/usr/local/bin" ]]; then BASEDIR=/usr/local/share/kolla-ansible + elif [[ ${dir_name} == ~/.local/bin ]]; then + BASEDIR=~/.local/share/kolla-ansible elif [[ -n ${VIRTUAL_ENV} ]] && [[ ${dir_name} == "$(readlink -e "${VIRTUAL_ENV}/bin")" ]]; then if test -f ${VIRTUAL_ENV}/lib/python*/site-packages/kolla-ansible.egg-link; then # Editable install.