Fix job creation with pattern

Change-Id: I0222b853464f6bf3589f11477a0624d72c64a22b
This commit is contained in:
Lingxian Kong 2017-08-06 16:19:48 +12:00
parent 55c7e5f496
commit 35e652f43a
1 changed files with 1 additions and 1 deletions

View File

@ -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.'