Skip to content

Commit

Permalink
Honour --output-file when there are not Helm Releases (#494)
Browse files Browse the repository at this point in the history
Fix issue where diffs for no helm releases breaks the action output.
  • Loading branch information
allenporter authored Jan 6, 2024
1 parent b0d7aab commit 5cbb9bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flux_local/tool/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ async def run( # type: ignore[no-untyped-def]
)

if not helm_visitor.releases and not orig_helm_visitor.releases:
print(selector.not_found("HelmRelease", query.helm_release))
with open(output_file, "w") as file:
print(selector.not_found("HelmRelease", query.helm_release), file=file)
return

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

0 comments on commit 5cbb9bf

Please sign in to comment.