mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 06:01:51 +00:00
fix warning about uninitialized value
This commit is contained in:
parent
7dbff9d2f8
commit
760fb3c842
@ -1551,9 +1551,10 @@ __PACKAGE__->register_method({
|
||||
# read spice ticket from STDIN
|
||||
my $spice_ticket;
|
||||
if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
|
||||
my $line = <>;
|
||||
chomp $line;
|
||||
$spice_ticket = $line if $line;
|
||||
if (my $line = <>) {
|
||||
chomp $line;
|
||||
$spice_ticket = $line;
|
||||
}
|
||||
}
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
|
Loading…
Reference in New Issue
Block a user