From da6b4d39c6a86e090ff8efec2b882ad2101effeb Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 6 Aug 2021 15:17:45 -0400 Subject: [PATCH] fix(tools): disable line wrap in image Base64 output --- tools/anvil-get-server-screenshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/anvil-get-server-screenshot b/tools/anvil-get-server-screenshot index f673a895..5ca019f1 100755 --- a/tools/anvil-get-server-screenshot +++ b/tools/anvil-get-server-screenshot @@ -50,7 +50,7 @@ sub get_server_screenshot my $parameters = shift; my $server_uuid = $parameters->{server_uuid}; - my $shell_call = "virsh screenshot --domain ".$server_uuid." --file /dev/stdout | sed 's/Screenshot.*//' | base64"; + my $shell_call = "virsh screenshot --domain ".$server_uuid." --file /dev/stdout | sed 's/Screenshot.*//' | base64 --wrap 0"; my ($shell_output, $shell_return_code) = system_call({ shell_call => $shell_call }); return $shell_return_code == 0 ? $shell_output : undef;