1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fix situation where the content of the param can be false and not set the attr

This commit is contained in:
Rodrigo Estebanez 2013-10-14 18:47:51 +02:00
parent 670a7b2661
commit 9e5bd24a05

View file

@ -30,9 +30,9 @@ module Fog
attrs = {
:xmlns => 'http://www.vmware.com/vcloud/v1.5'
}
attr[:deploymentLeaseSeconds] = options[:deploymentLeaseSeconds] if options[:deploymentLeaseSeconds]
attr[:forceCustomization] = options[:forceCustomization] if options[:forceCustomization]
attr[:powerOn] = options[:powerOn] if options[:powerOn]
attr[:deploymentLeaseSeconds] = options[:deploymentLeaseSeconds] if options.key?(:deploymentLeaseSeconds)
attr[:forceCustomization] = options[:forceCustomization] if options.key?(:forceCustomization)
attr[:powerOn] = options[:powerOn] if options.key?(:powerOn)
DeployVAppParams(attrs)
end.to_xml