1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

changed chmod to 2.4 compat

This commit is contained in:
Brian Coca 2015-09-14 09:54:38 -04:00 committed by Matt Clay
parent 4f9bb86e58
commit 99159b3cdd

View file

@ -235,7 +235,7 @@ class CronTab(object):
fileh = open(self.cron_file, 'w')
else:
filed, path = tempfile.mkstemp(prefix='crontab')
os.chmod(path, 0o644)
os.chmod(path, 0644)
fileh = os.fdopen(filed, 'w')
fileh.write(self.render())