diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 6254b2e..0f31fdb 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -670,7 +670,7 @@ sub template_replace { return $tmpl if !$tmpl; my $res = ''; - while ($tmpl =~ m/([^{]+)?({([^}]+)})?/g) { + while ($tmpl =~ m/([^{]+)?(\{([^}]+)\})?/g) { $res .= $1 if $1; $res .= ($data->{$3} || '-') if $2; }