mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-08 12:54:54 +00:00
parse_vm_config: correctly handle $descr
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
eab09f4e11
commit
0d732d1615
@ -1837,7 +1837,7 @@ sub parse_vm_config {
|
|||||||
my $res = {
|
my $res = {
|
||||||
digest => Digest::SHA::sha1_hex($raw),
|
digest => Digest::SHA::sha1_hex($raw),
|
||||||
snapshots => {},
|
snapshots => {},
|
||||||
pending => {}
|
pending => {},
|
||||||
};
|
};
|
||||||
|
|
||||||
$filename =~ m|/qemu-server/(\d+)\.conf$|
|
$filename =~ m|/qemu-server/(\d+)\.conf$|
|
||||||
@ -1853,6 +1853,8 @@ sub parse_vm_config {
|
|||||||
next if $line =~ m/^\s*$/;
|
next if $line =~ m/^\s*$/;
|
||||||
|
|
||||||
if ($line =~ m/^\[PENDING\]\s*$/i) {
|
if ($line =~ m/^\[PENDING\]\s*$/i) {
|
||||||
|
$conf->{description} = $descr if $descr;
|
||||||
|
$descr = '';
|
||||||
$conf = $res->{pending} = {};
|
$conf = $res->{pending} = {};
|
||||||
next;
|
next;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user