Fixes attributes when generating xml body for post deploy vapps.

This commit is contained in:
Daniel Aragao 2014-05-28 16:18:44 +10:00 committed by Daniel
parent 607bf3ae99
commit 03b5551b3a
1 changed files with 3 additions and 3 deletions

View File

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