Skip to content

Commit 0a6c528

Browse files
author
Matt Pryor
committed
Use the binary from Helm index directly to avoid encoding errors
1 parent 43f45df commit 0a6c528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm-latest-version/helm-latest-version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main():
3131
response.raise_for_status()
3232

3333
print(f"[INFO ] extracting versions for chart {args.chart_name}")
34-
entries = yaml.safe_load(response.text)["entries"][args.chart_name]
34+
entries = yaml.safe_load(response.content)["entries"][args.chart_name]
3535

3636
# Find the most recent version that matches the constraints
3737
print(f"[INFO ] searching for versions matching {args.constraints}")

0 commit comments

Comments
 (0)