diff --git a/bin/core/src/cloud/hetzner/mod.rs b/bin/core/src/cloud/hetzner/mod.rs index 25819fd35..41bd8979b 100644 --- a/bin/core/src/cloud/hetzner/mod.rs +++ b/bin/core/src/cloud/hetzner/mod.rs @@ -99,7 +99,8 @@ pub async fn launch_hetzner_server( let body = CreateServerBody { name: name.to_string(), - automount: Some(automount), + // only actually add automount if volumes nonempty + automount: (!volume_ids.is_empty()).then_some(automount), datacenter: Some(datacenter), location: None, firewalls: firewall_ids