Skip to content

Commit 5cbb9bf

Browse files
authored
Honour --output-file when there are not Helm Releases (#494)
Fix issue where diffs for no helm releases breaks the action output.
1 parent b0d7aab commit 5cbb9bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flux_local/tool/diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ async def run( # type: ignore[no-untyped-def]
375375
)
376376

377377
if not helm_visitor.releases and not orig_helm_visitor.releases:
378-
print(selector.not_found("HelmRelease", query.helm_release))
378+
with open(output_file, "w") as file:
379+
print(selector.not_found("HelmRelease", query.helm_release), file=file)
379380
return
380381

381382
# Find HelmRelease objects with diffs and prune all other HelmReleases from

0 commit comments

Comments
 (0)