mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add suggested changes
This commit is contained in:
parent
e27e9fd1e7
commit
6eff2f847b
@ -826,7 +826,7 @@ def get_encoding(path):
|
||||
]
|
||||
for _encoding, bom in boms:
|
||||
if _data.startswith(bom):
|
||||
log.debug('Found BOM for {0}'.format(_encoding))
|
||||
log.debug('Found BOM for %s', _encoding)
|
||||
return _encoding
|
||||
return False
|
||||
|
||||
|
@ -237,7 +237,7 @@ class FileBlockReplaceTestCase(TestCase, LoaderModuleMockMixin):
|
||||
'__grains__': {'kernel': 'Linux'},
|
||||
'__utils__': {
|
||||
'files.is_binary': MagicMock(return_value=False),
|
||||
'files.get_encoding': MagicMock(return_value=None)
|
||||
'files.get_encoding': MagicMock(return_value='utf-8')
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user