mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-03 17:45:44 +00:00
format
This commit is contained in:
@@ -492,7 +492,9 @@ impl NetworkConfig {
|
||||
.parse()
|
||||
.with_context(|| format!("failed to parse instance id: {:?}", self.instance_id))?,
|
||||
);
|
||||
if let Some(n) = self.hostname.as_ref() { cfg.set_hostname(n) }
|
||||
if let Some(n) = self.hostname.as_ref() {
|
||||
cfg.set_hostname(n)
|
||||
}
|
||||
cfg.set_dhcp(self.dhcp.unwrap_or_default());
|
||||
cfg.set_inst_name(self.network_name.clone().unwrap_or_default());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user