fix(cgi-bin): try to use switches when failed to parse request body in get_membership
This commit is contained in:
parent
7bf604b3e2
commit
52a524564f
@ -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'};
|
||||||
|
Loading…
Reference in New Issue
Block a user