This commit is contained in:
@ -87,8 +87,8 @@ impl DVMHandler for LnvpsDvm {
|
|||||||
let template = VmCustomTemplate {
|
let template = VmCustomTemplate {
|
||||||
id: 0,
|
id: 0,
|
||||||
cpu: cpu.parse()?,
|
cpu: cpu.parse()?,
|
||||||
memory: memory.parse()? * MB,
|
memory: MB * memory.parse::<u64>()?,
|
||||||
disk_size: disk.parse()? * GB,
|
disk_size: GB * disk.parse::<u64>()?,
|
||||||
disk_type: DiskType::from_str(disk_type)?,
|
disk_type: DiskType::from_str(disk_type)?,
|
||||||
disk_interface: DiskInterface::from_str(disk_interface)?,
|
disk_interface: DiskInterface::from_str(disk_interface)?,
|
||||||
pricing_id: pricing.id,
|
pricing_id: pricing.id,
|
||||||
|
Reference in New Issue
Block a user