code cleanup
This commit is contained in:
parent
0cca82546a
commit
3eefcad767
|
@ -249,7 +249,7 @@ pub async fn dnclient(
|
|||
}
|
||||
};
|
||||
|
||||
let mut ks = host_in_ks;
|
||||
let ks = host_in_ks;
|
||||
|
||||
ks.certs.push(KSCert {
|
||||
id: ks.current_cert + 1,
|
||||
|
|
|
@ -77,7 +77,6 @@ use std::net::{Ipv4Addr, SocketAddrV4};
|
|||
use std::str::FromStr;
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use trifid_api_entities::entity::{host, host_config_override, host_static_address, network, organization, role};
|
||||
use trifid_api_entities::entity::prelude::HostConfigOverride;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ListHostsRequestOpts {
|
||||
|
@ -720,7 +719,7 @@ pub async fn create_hosts_request(
|
|||
}
|
||||
|
||||
let matching_ip = match host::Entity::find()
|
||||
.filter(host::Column::Ip.eq(&req.ip_address))
|
||||
.filter(host::Column::Ip.eq(&req.ip_address.to_string()))
|
||||
.all(&db.conn)
|
||||
.await
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue