Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Feb 29, 2024
1 parent 146cf82 commit f572c1d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@ impl ServiceManager {
OmicronZoneType::InternalNtp {
dns_servers,
ntp_servers,
domain, ..
domain,
..
},
underlay_address,
..
Expand Down Expand Up @@ -2006,18 +2007,21 @@ impl ServiceManager {
.add_property("domain", "astring", domain)
.add_property("boundary", "boolean", &is_boundary);


for s in ntp_servers {
ntp_config = ntp_config
.clone()
.add_property("server", "astring", &s.to_string());
};
ntp_config = ntp_config.clone().add_property(
"server",
"astring",
&s.to_string(),
);
}

for s in dns_servers.clone() {
ntp_config = ntp_config
.clone()
.add_property("dns_server", "astring", &s.to_string());
};
ntp_config = ntp_config.clone().add_property(
"dns_server",
"astring",
&s.to_string(),
);
}

let dns_client_service;
if dns_servers.is_empty() {
Expand Down

0 comments on commit f572c1d

Please sign in to comment.