Skip to content

Commit 348be22

Browse files
author
Luke Goodfellow
authored
Fix Error for saveHelmReleases (#5)
* Fix error from saveHelmReleases command * updated version
1 parent 5a258e2 commit 348be22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.1
1+
2.1.2

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function saveHelmReleases(type, namespace) {
5555
try {
5656
const helmList = new Deno.Command('helm', { args: ['list', '-n', namespace, '-o', 'json'] });
5757
const output = await helmList.output();
58-
const helmReleases = JSON.parse(new TextDecoder().decode(output));
58+
const helmReleases = JSON.parse(new TextDecoder().decode(output.stdout));
5959
await Deno.writeTextFile(`${dirPath}/${type}-helmReleases.yaml`, toYaml(helmReleases, { skipInvalid: true }));
6060
} catch (error) {
6161
console.error(`Error saving Helm releases for ${type}:`, error);

0 commit comments

Comments
 (0)