lib/vagrant-ovirt3/config.rb in vagrant-ovirt3-1.6.2 vs lib/vagrant-ovirt3/config.rb in vagrant-ovirt3-1.7.0
- old
+ new
@@ -11,10 +11,11 @@
attr_accessor :cluster
attr_accessor :filtered_api
# Domain specific settings used while creating new machine.
attr_accessor :memory
+ attr_accessor :memory_guaranteed
attr_accessor :cpus
attr_accessor :template
attr_accessor :template_version
attr_accessor :console
attr_accessor :disk_size
@@ -34,19 +35,20 @@
@datacenter = UNSET_VALUE
@cluster = UNSET_VALUE
@filtered_api = UNSET_VALUE
# Domain specific settings.
- @memory = UNSET_VALUE
- @cpus = UNSET_VALUE
- @quota = UNSET_VALUE
- @template = UNSET_VALUE
- @template_version = UNSET_VALUE
- @console = UNSET_VALUE
- @disk_size = UNSET_VALUE
- @user_data = UNSET_VALUE
- @name = UNSET_VALUE
+ @memory = UNSET_VALUE
+ @memory_guaranteed = UNSET_VALUE
+ @cpus = UNSET_VALUE
+ @quota = UNSET_VALUE
+ @template = UNSET_VALUE
+ @template_version = UNSET_VALUE
+ @console = UNSET_VALUE
+ @disk_size = UNSET_VALUE
+ @user_data = UNSET_VALUE
+ @name = UNSET_VALUE
@ca_no_verify = UNSET_VALUE
@ca_cert_store = UNSET_VALUE
@ca_cert_file = UNSET_VALUE
end
@@ -59,9 +61,10 @@
@cluster = nil if @cluster == UNSET_VALUE
@filtered_api = false if @filtered_api == UNSET_VALUE
# Domain specific settings.
@memory = 512 if @memory == UNSET_VALUE
+ @memory_guaranteed = nil if @memory_guaranteed == UNSET_VALUE
@cpus = 1 if @cpus == UNSET_VALUE
@quota = nil if @quota == UNSET_VALUE
@template = 'Blank' if @template == UNSET_VALUE
@template_version = nil if @template_version == UNSET_VALUE
@console = 'spice' if @console == UNSET_VALUE