lib/vagrant-ovirt3/config.rb in vagrant-ovirt3-1.8.2 vs lib/vagrant-ovirt3/config.rb in vagrant-ovirt3-1.9.0

- old
+ new

@@ -9,10 +9,12 @@ attr_accessor :password attr_accessor :datacenter attr_accessor :cluster attr_accessor :filtered_api + attr_accessor :connect_timeout + # Domain specific settings used while creating new machine. attr_accessor :memory attr_accessor :memory_guaranteed attr_accessor :cpus attr_accessor :template @@ -27,17 +29,19 @@ attr_accessor :ca_no_verify attr_accessor :ca_cert_store attr_accessor :ca_cert_file def initialize - @url = UNSET_VALUE - @username = UNSET_VALUE - @password = UNSET_VALUE - @datacenter = UNSET_VALUE - @cluster = UNSET_VALUE - @filtered_api = UNSET_VALUE + @url = UNSET_VALUE + @username = UNSET_VALUE + @password = UNSET_VALUE + @datacenter = UNSET_VALUE + @cluster = UNSET_VALUE + @filtered_api = UNSET_VALUE + @connect_timeout = UNSET_VALUE + # Domain specific settings. @memory = UNSET_VALUE @memory_guaranteed = UNSET_VALUE @cpus = UNSET_VALUE @quota = UNSET_VALUE @@ -58,9 +62,10 @@ @username = nil if @username == UNSET_VALUE @password = nil if @password == UNSET_VALUE @datacenter = nil if @datacenter == UNSET_VALUE @cluster = nil if @cluster == UNSET_VALUE @filtered_api = false if @filtered_api == UNSET_VALUE + @connect_timeout = 10 if @connect_timeout == 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