1
0
Fork 0
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:
Philip Potter 2013-09-16 16:50:14 +01:00
parent 31954efdaa
commit 91522ace22
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,8 @@ module Fog
end
def undeploy
service.undeploy(id)
response = service.undeploy(id)
service.process_task(response.body)
end
end

View file

@ -12,6 +12,7 @@ EOF
:body => body,
:expects => 202,
:method => 'POST',
:parser => Fog::ToHashDocument.new,
:headers => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
:path => "vApp/#{vapp_id}/action/undeploy"
)