mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
- encoding errors
This commit is contained in:
parent
5ef35e7f4c
commit
ea62a8c0cd
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ def __write_aliases_file(lines):
|
|||
os.chmod(out.name, stat.S_IMODE(st.st_mode))
|
||||
os.chown(out.name, st.st_uid, st.st_gid)
|
||||
else:
|
||||
os.chmod(out.name, 0644)
|
||||
os.chmod(out.name, 0o644)
|
||||
os.chown(out.name, 0, 0)
|
||||
|
||||
for (line_alias, line_target, line_comment) in lines:
|
||||
|
|
|
@ -34,7 +34,7 @@ def __virtual__():
|
|||
'''
|
||||
Only load this module if the mysql config is set
|
||||
'''
|
||||
if any(k.startswith('mysql.') for k in list(__opts__):
|
||||
if any(k.startswith('mysql.') for k in list(__opts__)):
|
||||
if has_mysqldb:
|
||||
return 'mysql'
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue