1
0
Fork 0

Merge pull request #401 from jmencak/rhbz2017924

Fix improper parsing of include directive
This commit is contained in:
Jaroslav Škarvada 2022-01-17 12:14:38 +01:00 committed by GitHub
commit c34a0e8a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ class Loader(object):
config = self._load_config_data(filename)
profile = self._profile_factory.create(name, config)
if "include" in profile.options:
include_names = re.split(r"\b\s*[,;]\s*", self._variables.expand(profile.options.pop("include")))
include_names = re.split(r"\s*[,;]\s*", self._variables.expand(profile.options.pop("include")))
self._load_profile(include_names, profiles, processed_files)
profiles.append(profile)