diff --git a/curator/indexlist.py b/curator/indexlist.py index f45c76bf..448829c5 100644 --- a/curator/indexlist.py +++ b/curator/indexlist.py @@ -1222,6 +1222,7 @@ def iterate_filters(self, filter_dict): return self.loggit.debug('All filters: %s', filter_dict['filters']) for fil in filter_dict['filters']: + f = f.copy() self.loggit.debug('Top of the loop: %s', self.indices) self.loggit.debug('Un-parsed filter args: %s', fil) # Make sure we got at least this much in the configuration diff --git a/curator/snapshotlist.py b/curator/snapshotlist.py index ed1e95cd..1ba3a776 100644 --- a/curator/snapshotlist.py +++ b/curator/snapshotlist.py @@ -461,6 +461,7 @@ def iterate_filters(self, config): return self.loggit.debug('All filters: %s', config['filters']) for fltr in config['filters']: + f = f.copy() self.loggit.debug('Top of the loop: %s', self.snapshots) self.loggit.debug('Un-parsed filter args: %s', fltr) filter_result = SchemaCheck(