From f7b6d9fdff7fc88b10570ac1e5eb1ed1625ce2a6 Mon Sep 17 00:00:00 2001 From: Ray Terrill Date: Mon, 11 Nov 2019 11:05:16 -0800 Subject: [PATCH] Update custom_virtualenvs.md Adding trailing slashes to API calls + directories. This caused me a ton of wasted time as the API call silently returns but does nothing without the trailing slash. --- docs/custom_virtualenvs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/custom_virtualenvs.md b/docs/custom_virtualenvs.md index f1dfb90932..add0502276 100644 --- a/docs/custom_virtualenvs.md +++ b/docs/custom_virtualenvs.md @@ -26,12 +26,12 @@ first if absent: Now, we need to tell Tower to look into this directory for custom venvs. For that, we can add this directory to the `CUSTOM_VENV_PATHS` setting as: - $ HTTP PATCH /api/v2/settings/system {'CUSTOM_VENV_PATHS': ["/opt/my-envs/"]} + $ HTTP PATCH /api/v2/settings/system/ {'CUSTOM_VENV_PATHS': ["/opt/my-envs/"]} If we have venvs spanned over multiple directories, we can add all the paths and Tower will aggregate venvs from them: - $ HTTP PATCH /api/v2/settings/system {'CUSTOM_VENV_PATHS': ["/path/1/to/venv/", + $ HTTP PATCH /api/v2/settings/system/ {'CUSTOM_VENV_PATHS': ["/path/1/to/venv/", "/path/2/to/venv/", "/path/3/to/venv/"]} @@ -146,7 +146,7 @@ Project, or Job Template level: Content-Type: application/json { - 'custom_virtualenv': '/opt/my-envs/custom-venv' + 'custom_virtualenv': '/opt/my-envs/custom-venv/' } An HTTP `GET` request to `/api/v2/config/` will provide a list of @@ -154,8 +154,8 @@ detected installed virtualenvs: { "custom_virtualenvs": [ - "/opt/my-envs/custom-venv", - "/opt/my-envs/my-other-custom-venv", + "/opt/my-envs/custom-venv/", + "/opt/my-envs/my-other-custom-venv/", ], ... }