1
0
Fork 0

Merge pull request #526 from bhllamoreaux/plugin-net-expand

plugin_net: expand variables properly
This commit is contained in:
Jaroslav Škarvada 2023-08-16 20:29:44 +02:00 committed by GitHub
commit aa0f6c25a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,6 +329,8 @@ class NetTuningPlugin(hotplug.Plugin):
# parse features/coalesce config parameters (those defined in profile configuration)
# context is for error message
def _parse_config_parameters(self, value, context):
# expand config variables
value = self._variables.expand(value)
# split supporting various dellimeters
v = str(re.sub(r"(:\s*)|(\s+)|(\s*;\s*)|(\s*,\s*)", " ", value)).split()
lv = len(v)