fix(cgi-bin): avoid concat blank to job_data in manage_vnc_pipes endpoint
This commit is contained in:
parent
e79a3989eb
commit
f8b45f5a74
@ -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 $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,
|
||||
|
Loading…
Reference in New Issue
Block a user