1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Don't accept undocumented "p1;p2" patterns; note in changelog

The correct (and now only) way to say p1 OR p2 is "p1:p2".
This commit is contained in:
Abhijit Menon-Sen 2015-08-13 17:21:53 +05:30 committed by James Cammarata
parent 1437b8e120
commit d41db8edd6

View file

@ -533,12 +533,16 @@ class Inventory(object):
if subset_pattern is None:
self._subset = None
else:
<<<<<<< HEAD
<<<<<<< HEAD
subset_patterns = self._split_pattern(subset_pattern)
=======
subset_pattern = subset_pattern.replace(',',':')
subset_patterns = self._split_pattern(subset_pattern.replace(";",":"))
>>>>>>> Introduce _split_pattern to parse an "x:y:z" pattern
=======
subset_patterns = self._split_pattern(subset_pattern)
>>>>>>> Don't accept undocumented "p1;p2" patterns; note in changelog
results = []
# allow Unix style @filename data
for x in subset_patterns: