mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #31691 from rallytime/bp-31261
Back-port #31261 to 2016.3
This commit is contained in:
commit
d7401e9ea4
@ -127,7 +127,16 @@ def list_(show_all=False,
|
||||
continue
|
||||
|
||||
if '_seconds' in schedule[job]:
|
||||
schedule[job]['seconds'] = schedule[job]['_seconds']
|
||||
# if _seconds is greater than zero
|
||||
# then include the original back in seconds.
|
||||
# otherwise remove seconds from the listing as the
|
||||
# original item didn't include it.
|
||||
if schedule[job]['_seconds'] > 0:
|
||||
schedule[job]['seconds'] = schedule[job]['_seconds']
|
||||
else:
|
||||
del schedule[job]['seconds']
|
||||
|
||||
# remove _seconds from the listing
|
||||
del schedule[job]['_seconds']
|
||||
|
||||
if schedule:
|
||||
|
Loading…
Reference in New Issue
Block a user