mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Fix inline code related lint issues.
This commit is contained in:
parent
3af5f5d6aa
commit
ec2f78146c
@ -25,9 +25,9 @@ def __virtual__():
|
|||||||
'''
|
'''
|
||||||
Most everything has the ability to support at(1)
|
Most everything has the ability to support at(1)
|
||||||
'''
|
'''
|
||||||
if salt.utils.is_windows() or not salt.utils.which('at'):
|
if salt.utils.is_windows() or salt.utils.which('at') is None:
|
||||||
return False
|
return False
|
||||||
return 'at'
|
return True
|
||||||
|
|
||||||
|
|
||||||
def _cmd(binary, *args):
|
def _cmd(binary, *args):
|
||||||
@ -284,33 +284,54 @@ def _atq(**kwargs):
|
|||||||
|
|
||||||
for job in jobinfo:
|
for job in jobinfo:
|
||||||
|
|
||||||
if not runas: pass
|
if not runas:
|
||||||
elif runas == job['user']: pass
|
pass
|
||||||
else: continue
|
elif runas == job['user']:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not tag: pass
|
if not tag:
|
||||||
elif tag == job['tag']: pass
|
pass
|
||||||
else: continue
|
elif tag == job['tag']:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not hour: pass
|
if not hour:
|
||||||
elif "%02d" % int(hour) == job['time'].split(':')[0]: pass
|
pass
|
||||||
else: continue
|
elif "%02d" % int(hour) == job['time'].split(':')[0]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not minute: pass
|
if not minute:
|
||||||
elif "%02d" % int(minute) == job['time'].split(':')[1]: pass
|
pass
|
||||||
else: continue
|
elif "%02d" % int(minute) == job['time'].split(':')[1]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not day: pass
|
if not day:
|
||||||
elif "%02d" % int(day) == job['date'].split('-')[2]: pass
|
pass
|
||||||
else: continue
|
elif "%02d" % int(day) == job['date'].split('-')[2]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not month: pass
|
if not month:
|
||||||
elif "%02d" % int(month) == job['date'].split('-')[1]: pass
|
pass
|
||||||
else: continue
|
elif "%02d" % int(month) == job['date'].split('-')[1]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if not year: pass
|
if not year:
|
||||||
elif year == job['date'].split('-')[0]: pass
|
pass
|
||||||
else: continue
|
elif year == job['date'].split('-')[0]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
jobs.append(job)
|
jobs.append(job)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user