Fix lint errors and typo

This commit is contained in:
Daniel A. Wozniak 2018-03-28 21:02:09 -07:00
parent cb5619537f
commit 44db77ae79
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61
2 changed files with 2 additions and 1 deletions

View file

@ -635,6 +635,7 @@ def _clean_dir(root, keep, exclude_pat):
'''
real_keep = _find_keep_files(root, keep)
removed = set()
def _delete_not_kept(nfn):
if nfn not in real_keep:
# -- check if this is a part of exclude_pat(only). No need to

View file

@ -1849,7 +1849,7 @@ class TestFindKeepFiles(TestCase):
@skipIf(salt.utils.is_windows(), 'Do not run on Windows')
def test__find_keep_files_unix(self):
keep = filestate._find_keep_files_old(
keep = filestate._find_keep_files(
'/test/parent_folder',
['/test/parent_folder/meh.txt']
)