Fix some lint, fix a test

This commit is contained in:
twangboy 2016-11-22 10:05:49 -07:00
parent 7082a8192f
commit c11506333c
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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)