mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix lint errors and typo
This commit is contained in:
parent
cb5619537f
commit
44db77ae79
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue