mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2966 from dbatwa/bug-fixes
VCloud Director - Bug fixes
This commit is contained in:
commit
edc73c1334
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ module Fog
|
|||
request(
|
||||
:body => body,
|
||||
:expects => 201,
|
||||
:headers => {'Content-Type' => 'application/vnd.vmware.vcloud.vAppTemplateParams+xml'},
|
||||
:headers => {'Content-Type' => 'application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml'},
|
||||
:method => 'POST',
|
||||
:parser => Fog::ToHashDocument.new,
|
||||
:path => "vdc/#{vdc_id}/action/uploadVAppTemplate"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
|
||||
</vmext:VimObjectRef>
|
||||
</VCloudExtension>
|
||||
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://vcloud.example.com/api/vdc/1/action/uploadVAppTemplate" />
|
||||
<Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/org/1"/>
|
||||
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://vcloud.example.com/api/vdc/1/action/uploadVAppTemplate"/>
|
||||
<Link rel="add" type="application/vnd.vmware.vcloud.media+xml" href="https://vcloud.example.com/api/vdc/1/media"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue