1
0
Fork 0
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:
Decklin Foster 2012-02-13 10:39:25 -05:00
parent 432475cded
commit b05b92634f

View file

@ -29,6 +29,7 @@ module Fog
if deleteable? instance_id if deleteable? instance_id
# remove from memoreeeez. # remove from memoreeeez.
self.data[:instances].delete instance_id self.data[:instances].delete instance_id
response.body = { 'success' => true }
response.status = 200 response.status = 200
else else
# TODO: we should really return a 412 if the instance is in an invalid state, and a 404 if it doesn't exist. # TODO: we should really return a 412 if the instance is in an invalid state, and a 404 if it doesn't exist.