mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 10:32:50 +00:00
vzdump: fix unknown variable name error, add newline
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1f581ff78e
commit
d0dfd9b87f
@ -92,7 +92,7 @@ my $generate_notes = sub {
|
|||||||
my $vars = join('|', keys $info->%*);
|
my $vars = join('|', keys $info->%*);
|
||||||
$notes_template =~ s/\{\{($vars)\}\}/$info->{$1}/g;
|
$notes_template =~ s/\{\{($vars)\}\}/$info->{$1}/g;
|
||||||
|
|
||||||
die "unexpected variable name '$1'" if $notes_template =~ m/\{\{([^\s}]+)\}\}/;
|
die "unexpected variable name '$1'\n" if $notes_template =~ m/\{\{([^\s}]+)\}\}/;
|
||||||
|
|
||||||
return $notes_template;
|
return $notes_template;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user