|
|
@ -51,7 +51,7 @@ sub get_server_screenshot |
|
|
|
my $server_uuid = $parameters->{server_uuid}; |
|
|
|
my $server_uuid = $parameters->{server_uuid}; |
|
|
|
my ($resize_x, $resize_y) = split(/x/ , $parameters->{resize_args}); |
|
|
|
my ($resize_x, $resize_y) = split(/x/ , $parameters->{resize_args}); |
|
|
|
|
|
|
|
|
|
|
|
my $shell_call = "virsh screenshot --domain ".$server_uuid." --file /dev/stdout | sed 's/Screenshot.*//'"; |
|
|
|
my $shell_call = "virsh --quiet screenshot --domain ".$server_uuid." --file /dev/stdout"; |
|
|
|
|
|
|
|
|
|
|
|
if ($resize_x =~ /^\d+$/ && $resize_y =~ /^\d+$/) |
|
|
|
if ($resize_x =~ /^\d+$/ && $resize_y =~ /^\d+$/) |
|
|
|
{ |
|
|
|
{ |
|
|
|