Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
651477787 authored May 5, 2023
1 parent 2eed666 commit 1b8cb30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6572,7 +6572,8 @@ def sample_rate(ctx, ifname, rate):
click.echo('Invalid interface name')
return
if not is_valid_sample_rate(rate) and rate != 'default':
ctx.fail('Sample rate must be between 256 and 8388608 or default')
click.echo('Error: Sample rate must be between 256 and 8388608 or default')
return

sess_dict = config_db.get_table('SFLOW_SESSION')

Expand Down

0 comments on commit 1b8cb30

Please sign in to comment.