lib/fog/vsphere/requests/compute/create_vm.rb in fog-1.21.0 vs lib/fog/vsphere/requests/compute/create_vm.rb in fog-1.22.0
- old
+ new
@@ -85,11 +85,11 @@
controller_default_options.merge(Hash[options.map{|k,v| [k.to_sym,v] }])
else
controller_default_options
end
controller_class=if options[:type].is_a? String then
- Fog::class_from_string options[:type], "RbVmomi::VIM"
+ Fog::Vsphere.class_from_string options[:type], "RbVmomi::VIM"
else
options[:type]
end
{
:operation => options[:operation],
@@ -132,10 +132,10 @@
:unitNumber => index,
:capacityInKB => disk.size
)
}
- if operation == :add && disk.thin == false && disk.eager_zero
+ if operation == :add && disk.thin == 'false' && disk.eager_zero == 'true'
payload[:device][:backing][:eagerlyScrub] = disk.eager_zero
end
payload
end