Fix job creation with pattern
Change-Id: I0222b853464f6bf3589f11477a0624d72c64a22b
This commit is contained in:
parent
55c7e5f496
commit
35e652f43a
|
@ -61,8 +61,8 @@ def validate_job(params):
|
||||||
'Pattern or first_execution_time must be specified.'
|
'Pattern or first_execution_time must be specified.'
|
||||||
)
|
)
|
||||||
|
|
||||||
first_time = validate_next_time(first_time)
|
|
||||||
if first_time:
|
if first_time:
|
||||||
|
first_time = validate_next_time(first_time)
|
||||||
if not pattern and count and count > 1:
|
if not pattern and count and count > 1:
|
||||||
raise exc.InputException(
|
raise exc.InputException(
|
||||||
'Pattern must be provided if count is greater than 1.'
|
'Pattern must be provided if count is greater than 1.'
|
||||||
|
|
Loading…
Reference in New Issue