mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[ibm] Delete instance mock should return success
This commit is contained in:
		
							parent
							
								
									432475cded
								
							
						
					
					
						commit
						b05b92634f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,7 @@ module Fog
 | 
			
		|||
          if deleteable? instance_id
 | 
			
		||||
            # remove from memoreeeez.
 | 
			
		||||
            self.data[:instances].delete instance_id
 | 
			
		||||
            response.body = { 'success' => true }
 | 
			
		||||
            response.status = 200
 | 
			
		||||
          else
 | 
			
		||||
            # TODO: we should really return a 412 if the instance is in an invalid state, and a 404 if it doesn't exist.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue