Browse Source

Fix job creation with pattern

Change-Id: I0222b853464f6bf3589f11477a0624d72c64a22b
changes/18/491218/1
Lingxian Kong 4 years ago
parent
commit
35e652f43a
  1. 2
      qinling/utils/jobs.py

2
qinling/utils/jobs.py

@ -61,8 +61,8 @@ def validate_job(params):
'Pattern or first_execution_time must be specified.'
)
first_time = validate_next_time(first_time)
if first_time:
first_time = validate_next_time(first_time)
if not pattern and count and count > 1:
raise exc.InputException(
'Pattern must be provided if count is greater than 1.'

Loading…
Cancel
Save