Skip to content

Commit

Permalink
Fix failing py3 tests
Browse files Browse the repository at this point in the history
This should fix the following integration tests
integration.states.test_file.FileTest.test_directory_clean_require_in
integration.states.test_file.FileTest.test_directory_clean_require_in_with_id
integration.states.test_file.FileTest.test_directory_clean_require_with_name
integration.states.test_file.FileTest.test_recurse_clean
integration.states.test_file.FileTest.test_recurse_clean_specific_env
  • Loading branch information
twangboy committed Feb 22, 2019
1 parent 64f45f8 commit 4c55040
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions salt/states/file.py
Expand Up @@ -644,6 +644,7 @@ def _clean_dir(root, keep, exclude_pat):
Clean out all of the files and directories in a directory (root) while
preserving the files in a list (keep) and part of exclude_pat
'''
root = os.path.normcase(root)
real_keep = _find_keep_files(root, keep)
removed = set()

Expand Down

0 comments on commit 4c55040

Please sign in to comment.