This commit is contained in:
Luna Yao
2026-04-06 11:54:50 +02:00
parent 7c895c401b
commit b6afe6305a
3 changed files with 15 additions and 30 deletions
+3 -1
View File
@@ -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());