From 330d1a4b3402299ea9ab06470be967328ddcf69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Tue, 2 Jun 2015 11:11:57 +0200 Subject: [PATCH] variables: variables are now referenced by ${VAR} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Curl braces are mandatory and were added to solve the ambiguity. Signed-off-by: Jaroslav Škarvada --- tuned/profiles/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/profiles/variables.py b/tuned/profiles/variables.py index 97c938c..58919e1 100644 --- a/tuned/profiles/variables.py +++ b/tuned/profiles/variables.py @@ -27,7 +27,7 @@ class Variables(): return s = str(variable) v = self.expand(value) - self._lookup_re[r'\$' + re.escape(s) + r'\b'] = v + self._lookup_re[r'\${' + re.escape(s) + r'}'] = v self._lookup_env[self._add_env_prefix(s, consts.ENV_PREFIX)] = v def add_dict(self, d):