mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix white-space related lint issues
This commit is contained in:
parent
41f82b39e0
commit
6967b2f801
@ -105,7 +105,7 @@ def _write_cron_lines(user, lines):
|
||||
path = salt.utils.mkstemp()
|
||||
with salt.utils.fopen(path, 'w+') as fp_:
|
||||
fp_.writelines(lines)
|
||||
if __grains__.get('os_family') in ('Solaris','AIX') and user != "root":
|
||||
if __grains__.get('os_family') in ('Solaris', 'AIX') and user != "root":
|
||||
__salt__['cmd.run']('chown {0} {1}'.format(user, path))
|
||||
ret = __salt__['cmd.run_all'](_get_cron_cmdstr(user, path))
|
||||
os.remove(path)
|
||||
@ -132,7 +132,7 @@ def raw_cron(user):
|
||||
|
||||
salt '*' cron.raw_cron root
|
||||
'''
|
||||
if __grains__.get('os_family') in ('Solaris','AIX'):
|
||||
if __grains__.get('os_family') in ('Solaris', 'AIX'):
|
||||
cmd = 'crontab -l {0}'.format(user)
|
||||
else:
|
||||
cmd = 'crontab -l -u {0}'.format(user)
|
||||
|
Loading…
Reference in New Issue
Block a user