From eb561d6d39326f39cf13ade0c80d6ab41609d910 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 2 Feb 2023 19:21:56 -0500 Subject: [PATCH] fix(tools): always send to pipe when given request host --- tools/anvil-get-server-screenshot | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/anvil-get-server-screenshot b/tools/anvil-get-server-screenshot index 748cb68f..dd045281 100755 --- a/tools/anvil-get-server-screenshot +++ b/tools/anvil-get-server-screenshot @@ -183,15 +183,15 @@ if ($server_uuid) if ($request_host_uuid) { - if (length($encoded_image)) - { - my $request_host_ip_address = get_remote_call_requirements({ debug => $debug, host_uuid => $request_host_uuid }); - my $remote_shell_call = $anvil->data->{path}{exe}{echo}." '".$encoded_image."' >".$anvil->data->{path}{directories}{tmp}."/".$server_uuid."_screenshot_".$out_file_id; + my $request_host_ip_address = get_remote_call_requirements({ debug => $debug, host_uuid => $request_host_uuid }); + my $remote_shell_call = $anvil->data->{path}{exe}{echo}." '".$encoded_image."' >".$anvil->data->{path}{directories}{tmp}."/".$server_uuid."_screenshot_".$out_file_id; - $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => { request_host_ip_address => $request_host_ip_address } }); + $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => { request_host_ip_address => $request_host_ip_address } }); - remote_call({ debug => $debug, shell_call => $remote_shell_call, target => $request_host_ip_address }); + remote_call({ debug => $debug, shell_call => $remote_shell_call, target => $request_host_ip_address }); + if (length($encoded_image)) + { $anvil->Job->update_progress({ progress => 100, message => "message_0264" }); } else