mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vcloud_director] wait for undeploy to finish before returning
This commit is contained in:
parent
31954efdaa
commit
91522ace22
2 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,8 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def undeploy
|
def undeploy
|
||||||
service.undeploy(id)
|
response = service.undeploy(id)
|
||||||
|
service.process_task(response.body)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,6 +12,7 @@ EOF
|
||||||
:body => body,
|
:body => body,
|
||||||
:expects => 202,
|
:expects => 202,
|
||||||
:method => 'POST',
|
:method => 'POST',
|
||||||
|
:parser => Fog::ToHashDocument.new,
|
||||||
:headers => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
|
:headers => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
|
||||||
:path => "vApp/#{vapp_id}/action/undeploy"
|
:path => "vApp/#{vapp_id}/action/undeploy"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue