From 02bbf98084f2e65f42e58202437de48ce6a7159d Mon Sep 17 00:00:00 2001 From: Jonathan Ervine <57888439+jervine-gogo@users.noreply.github.com> Date: Wed, 16 Dec 2020 12:47:18 +0800 Subject: [PATCH] Fixing helm chart lookup --- main.py | 2 +- templates/nameChartSelect.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 61ff79e..69d9301 100644 --- a/main.py +++ b/main.py @@ -50,7 +50,7 @@ def get_deployments(namespace): return data def get_charts(ns): - command = "/usr/local/bin/helm -n " + namespace + " list -ojson" #helm3 + command = "/usr/local/bin/helm -n " + ns + " list -ojson" #helm3 info(f"Running command: {command}") try: output = check_output(command.split(" "), stderr=STDOUT).decode("utf-8") diff --git a/templates/nameChartSelect.html b/templates/nameChartSelect.html index f47d91c..4171be7 100644 --- a/templates/nameChartSelect.html +++ b/templates/nameChartSelect.html @@ -64,7 +64,7 @@ if (data != 'EMPTY') { var optionHTML = ''; for (var chart of data.Releases) { - optionHTML += ''; + optionHTML += ''; } chartSelect.innerHTML = optionHTML; }