Fix white-space related lint issues

This commit is contained in:
Pedro Algarvio 2014-02-08 03:50:51 +00:00
parent 41f82b39e0
commit 6967b2f801

View File

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