diff --git a/cgi-bin/manage_vnc_pipes b/cgi-bin/manage_vnc_pipes index 08dd149d..e9583e48 100755 --- a/cgi-bin/manage_vnc_pipes +++ b/cgi-bin/manage_vnc_pipes @@ -119,13 +119,12 @@ $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => 2, lis if ($server_uuid) { - $is_open = defined $is_open ? $is_open : ""; - - my $host_uuid = $anvil->Get->host_uuid(); - my $operation_string = $is_open ? "open" : "close"; - my $job_uuid = $anvil->Database->insert_or_update_jobs({ + my $host_uuid = $anvil->Get->host_uuid(); + my $operation_string = defined $is_open ? "open" : "close"; + my $open_string = defined $is_open ? $is_open : ""; + my $job_uuid = $anvil->Database->insert_or_update_jobs({ job_command => $anvil->data->{path}{exe}{'striker-manage-vnc-pipes'}, - job_data => "server-uuid=".$server_uuid."\nopen=".$is_open, + job_data => "server-uuid=".$server_uuid."\nopen=".$open_string, job_host_uuid => $host_uuid, job_description => "job_0351,!!operation!".$operation_string."!!,!!server_uuid!".$server_uuid."!!,!!host_uuid!".$host_uuid."!!", job_name => "cgi-bin::manage_vnc_pipes::".$operation_string,