fix(tools): use --quiet when getting server screenshot

main
Tsu-ba-me 3 years ago
parent e5b3243f04
commit 374f88acb7
  1. 2
      tools/anvil-get-server-screenshot

@ -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+$/)
{ {

Loading…
Cancel
Save