fix(cgi-bin): try to use switches when failed to parse request body in get_membership

This commit is contained in:
Tsu-ba-me 2021-05-28 18:18:10 -04:00
parent 7bf604b3e2
commit 52a524564f

View File

@ -194,7 +194,6 @@ if (not $is_decode_json_success)
key => "error_0304", key => "error_0304",
variables => { request_body_string => $anvil->data->{cgi}{PUTDATA}{value}, json_decode_error => $_ } variables => { request_body_string => $anvil->data->{cgi}{PUTDATA}{value}, json_decode_error => $_ }
}); });
$anvil->nice_exit({ exit_code => 1 });
} }
my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'}; my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'};