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
 | 
			
		||||
 | 
			
		||||
        def undeploy
 | 
			
		||||
          service.undeploy(id)
 | 
			
		||||
          response = service.undeploy(id)
 | 
			
		||||
          service.process_task(response.body)
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
      end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
          )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue