mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Sanitize memory and cpu (Fix #313)
This commit is contained in:
parent
8f60ed404b
commit
34095882db
@ -26,11 +26,11 @@ module VagrantPlugins
|
||||
|
||||
# Gather some info about domain
|
||||
@name = env[:domain_name]
|
||||
@cpus = config.cpus
|
||||
@cpus = config.cpus.to_i
|
||||
@cpu_mode = config.cpu_mode
|
||||
@disk_bus = config.disk_bus
|
||||
@nested = config.nested
|
||||
@memory_size = config.memory*1024
|
||||
@memory_size = config.memory.to_i*1024
|
||||
@domain_volume_cache = config.volume_cache
|
||||
@kernel = config.kernel
|
||||
@cmd_line = config.cmd_line
|
||||
|
Loading…
Reference in New Issue
Block a user