Skip to content

Commit

Permalink
Fix github actions by allowing empty string --sources flag (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed May 31, 2023
1 parent be2935e commit 7c572c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flux_local/tool/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def __call__(
option_string: str | None = None,
) -> None:
values = values.split(",")
if not values[0]:
return
try:
source = git_repo.Source.from_str(values[0])
except ValueError:
Expand Down
10 changes: 10 additions & 0 deletions tests/tool/testdata/diff_ks_yaml_empty_sources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
args:
- diff
- ks
- apps
- --path
- tests/testdata/cluster/
- -o
- yaml
- --sources
- ""

0 comments on commit 7c572c3

Please sign in to comment.