_run_explicit is always instantiated as a list.

This commit is contained in:
Pedro Algarvio 2018-02-26 13:59:47 +00:00
parent 72e1a0bbca
commit bf671d7e8e
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -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: