feat: return ip info

This commit is contained in:
2024-11-26 19:14:31 +00:00
parent 54acb09d0f
commit fd4af065f6
7 changed files with 17 additions and 9 deletions

View File

@ -57,7 +57,7 @@ impl Worker {
if self.read_only {
bail!("Cant spawn VM's in read-only mode");
}
let mut ips = self.db.get_vm_ip_assignments(vm.id).await?;
let mut ips = self.db.list_vm_ip_assignments(vm.id).await?;
if ips.is_empty() {
ips = self.provisioner.allocate_ips(vm.id).await?;
}