mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix some lint, fix a test
This commit is contained in:
parent
7082a8192f
commit
c11506333c
@ -1911,7 +1911,7 @@ def check_perms(path,
|
||||
ret['result'] = False
|
||||
ret['comment'].append(
|
||||
'Failed to grant permissions for "{0}" to '
|
||||
'{0}'.format(user, changes[user]))
|
||||
'{1}'.format(user, changes[user]))
|
||||
|
||||
# Check inheritance
|
||||
if inheritance is not None:
|
||||
|
@ -581,7 +581,7 @@ class FileTestCase(TestCase):
|
||||
'file.copy': mock_cp,
|
||||
'file.manage_file': mock_ex,
|
||||
'cmd.run_all': mock_cmd_fail}):
|
||||
comt = ('Must provide name to file.exists')
|
||||
comt = ('Must provide name to file.managed')
|
||||
ret.update({'comment': comt, 'name': '', 'pchanges': {}})
|
||||
self.assertDictEqual(filestate.managed(''), ret)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user