diff options
| author | James Pic <jpic@yourlabs.org> | 2021-06-02 09:42:35 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2021-06-18 07:47:44 +0000 |
| commit | fa53a60c149026ff6641e1e1d9bae240dd888f3d (patch) | |
| tree | 5f372c9b39aeb92a593516cf5c27c3f41ca0ebb4 | |
| parent | c08d80950f6b7ca598b55178795eb7618bd1a95d (diff) | |
| download | kolla-fa53a60c149026ff6641e1e1d9bae240dd888f3d.tar.gz kolla-fa53a60c149026ff6641e1e1d9bae240dd888f3d.zip | |
There are two cases where pip installs kolla share into ~/.local/share/kolla:
- with `pip install --user kolla`
- with `pip install kolla` as non-root
This patch helps kolla find the share dir in these cases.
Closes-Bug: #1930544
Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba
(cherry picked from commit db78657c231663f3e8ebbc18de43c06ddaa94c97)
| -rwxr-xr-x | kolla/image/build.py | 1 | ||||
| -rw-r--r-- | releasenotes/notes/bug-1930544-a8926990f3a578a9.yaml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index a1735d34f..2c7f53181 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -862,6 +862,7 @@ class KollaWorker(object): PROJECT_ROOT, os.path.join(sys.prefix, 'share/kolla'), os.path.join(sys.prefix, 'local/share/kolla'), + os.path.join(os.getenv('HOME', ''), '.local/share/kolla'), # NOTE(zioproto): When Kolla is used within a snap, the env var # $SNAP is the directory where the snap is mounted. # https://github.com/zioproto/snap-kolla diff --git a/releasenotes/notes/bug-1930544-a8926990f3a578a9.yaml b/releasenotes/notes/bug-1930544-a8926990f3a578a9.yaml new file mode 100644 index 000000000..f10ce242a --- /dev/null +++ b/releasenotes/notes/bug-1930544-a8926990f3a578a9.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix support for kolla install in ``~/.local``. `LP#1930544 + <https://launchpad.net/bugs/1930544>`__ |
