fix bug when method is DELETE
This commit is contained in:
		
							parent
							
								
									29cf4c48cd
								
							
						
					
					
						commit
						6eedef4137
					
				| 
						 | 
					@ -439,7 +439,7 @@ sub freenas_api_call {
 | 
				
			||||||
    $freenas_rest_connection = $freenas_server_list->{$apihost};
 | 
					    $freenas_rest_connection = $freenas_server_list->{$apihost};
 | 
				
			||||||
    $freenas_global_config = $freenas_global_config_list->{$apihost};
 | 
					    $freenas_global_config = $freenas_global_config_list->{$apihost};
 | 
				
			||||||
    my $json_data = (defined $data) ? encode_json($data) : undef;
 | 
					    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");
 | 
					    syslog("info", (caller(0))[3] . " : successful");
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue