fix(tools): wrap guest name with quotes when get vncdisplay in manage vnc pipes

main
Tsu-ba-me 2 years ago
parent 64093d42a0
commit 54197a2f2c
  1. 2
      tools/striker-manage-vnc-pipes

@ -139,7 +139,7 @@ sub get_vnc_info
if ( (not defined $port) or (not $port =~ /^\d+$/) ) if ( (not defined $port) or (not $port =~ /^\d+$/) )
{ {
# Requires root to access VM information. # Requires root to access VM information.
my $shell_call = "virsh vncdisplay ".$server_name; my $shell_call = "virsh vncdisplay \"$server_name\"";
my ($shell_output, $shell_error, $shell_return_code) = call({ my ($shell_output, $shell_error, $shell_return_code) = call({
host_name => $host_name, host_name => $host_name,

Loading…
Cancel
Save