Merge pull request #23075 from hvnsweeting/py3-chmod

py3 octal literal
This commit is contained in:
Justin Findlay 2015-04-27 00:16:02 -06:00
commit 0a2adcd8c3

View file

@ -76,7 +76,7 @@ def update_config(file_name, yaml_contents):
if not os.path.exists(dir_path):
log.debug('Creating directory {0}'.format(dir_path))
os.makedirs(dir_path, 755)
os.makedirs(dir_path, 0o755)
file_path = os.path.join(dir_path, file_name)
with salt.utils.fopen(file_path, 'w') as fp_: