mirror of
https://github.com/TheGrandWazoo/freenas-proxmox.git
synced 2026-10-21 03:07:14 +02:00
fix bug when method is DELETE
This commit is contained in:
@@ -439,7 +439,7 @@ sub freenas_api_call {
|
||||
$freenas_rest_connection = $freenas_server_list->{$apihost};
|
||||
$freenas_global_config = $freenas_global_config_list->{$apihost};
|
||||
my $json_data = (defined $data) ? encode_json($data) : undef;
|
||||
$freenas_rest_connection->$method($path, $json_data);
|
||||
$freenas_rest_connection->request($method, $path, $json_data);
|
||||
syslog("info", (caller(0))[3] . " : successful");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user