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:
parent
670a7b2661
commit
9e5bd24a05
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue