mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-18 14:28:34 +00:00
fix 'uninitialized value in concat' due to unnamed VM
This is an minor fix which let's you start the spice console on an unnamed VM without getting the 'Use of uninitialized value in concatenation' error. Also changes the trailing comma from the $conf definition lineto an semicolon. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f039eff2d1
commit
7f9e28e45c
@ -1397,7 +1397,8 @@ __PACKAGE__->register_method({
|
|||||||
my $proxy = $param->{proxy};
|
my $proxy = $param->{proxy};
|
||||||
|
|
||||||
my $conf = PVE::QemuServer::load_config($vmid, $node);
|
my $conf = PVE::QemuServer::load_config($vmid, $node);
|
||||||
my $title = "VM $vmid - $conf->{'name'}",
|
my $title = "VM $vmid";
|
||||||
|
$title .= " - ". $conf->{name} if $conf->{name};
|
||||||
|
|
||||||
my $port = PVE::QemuServer::spice_port($vmid);
|
my $port = PVE::QemuServer::spice_port($vmid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user