The limits files are normally available to rules as a list of LimitsConf
objects. This combiner turns those into one set of data, and provides a
find_all() method to search the rules from all the files.
Combiner for accessing all the limits configuration files.
the set of domains found in all data files.
a list of the original LimitsConf parser results.
the entire list of rules.
Find all the rules that match the given parameters. We cheat a bit here and combine the results from the find_all() method from the original parsers. Otherwise we’d have to reimplement the _matches method from the LimitsConf class.
>>> data = limits >>> results = data.find_all(domain='nproc') >>> len(results) 1 >>> results['domain'] 'nproc'
**kwargs (dict) -- key-value pairs for the search data.
- a list of the rules matching the given keywords, as
determined by the
_matches()method in the
- Return type