From 3807e2c2d9d4bec98fd731323ff2032c6e964531 Mon Sep 17 00:00:00 2001 From: Colin Evans Date: Wed, 18 Jan 2017 13:38:10 -0500 Subject: [PATCH] Fix test failure - change "set += list" to "set.update(list)" --- salt/states/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/file.py b/salt/states/file.py index cbcf5dee1f..20ea4e90e8 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -3184,7 +3184,7 @@ def recurse(name, if clean: # TODO: Use directory(clean=True) instead - keep += _gen_keep_files(name, require) + keep.update(_gen_keep_files(name, require)) removed = _clean_dir(name, list(keep), exclude_pat) if removed: if __opts__['test']: