Skip to content

Commit 8e97d4f

Browse files
committed
CLI: Change interval default to 1
We basically never want 0 here. Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 91a86f3 commit 8e97d4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frequenz/client/dispatch/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def validate_reccurance(ctx: click.Context, param: click.Parameter, value: Any)
187187
["--interval"],
188188
type=int,
189189
help="Interval of the dispatch, based on frequency",
190-
default=0,
190+
default=1,
191191
),
192192
click.Option(
193193
["--count"],

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async def test_list_command(
298298
{},
299299
RecurrenceRule(
300300
frequency=Frequency.DAILY,
301-
interval=0,
301+
interval=1,
302302
end_criteria=EndCriteria(
303303
count=None, until=(TEST_NOW + timedelta(days=1))
304304
),

0 commit comments

Comments
 (0)