mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
_run_explicit
is always instantiated as a list.
This commit is contained in:
parent
72e1a0bbca
commit
bf671d7e8e
@ -911,9 +911,6 @@ class Schedule(object):
|
|||||||
_run_explicit.append(datetime.datetime.strptime(_run_time['time'],
|
_run_explicit.append(datetime.datetime.strptime(_run_time['time'],
|
||||||
_run_time['time_fmt']))
|
_run_time['time_fmt']))
|
||||||
|
|
||||||
if isinstance(_run_explicit, six.integer_types):
|
|
||||||
_run_explicit = [_run_explicit]
|
|
||||||
|
|
||||||
# Copy the list so we can loop through it
|
# Copy the list so we can loop through it
|
||||||
for i in copy.deepcopy(_run_explicit):
|
for i in copy.deepcopy(_run_explicit):
|
||||||
if len(_run_explicit) > 1:
|
if len(_run_explicit) > 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user