forked from github-starred/komodo
only actually add automount if volumes nonempty
This commit is contained in:
@@ -99,7 +99,8 @@ pub async fn launch_hetzner_server(
|
|||||||
|
|
||||||
let body = CreateServerBody {
|
let body = CreateServerBody {
|
||||||
name: name.to_string(),
|
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),
|
datacenter: Some(datacenter),
|
||||||
location: None,
|
location: None,
|
||||||
firewalls: firewall_ids
|
firewalls: firewall_ids
|
||||||
|
|||||||
Reference in New Issue
Block a user