Permalink
Browse files

fix: instance cleanup

Change-Id: Ib0e0ce10abf5f10de87eb61e15bdc7cbb3933964
  • Loading branch information...
1 parent 525f6cf commit 6945c009778bc804ccb177719c1611b346a6b7b9 @bnugmanov bnugmanov committed Sep 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dea/agent.rb
View
4 lib/dea/agent.rb
@@ -1339,9 +1339,9 @@ def cleanup_droplet(instance)
# clean up the in memory instance and directory only if
# the instance didn't crash or when it was marked as flapping
if instance[:state] != :CRASHED || instance[:flapping]
- if droplet = @droplets[instance[:droplet_id]]
+ if droplet = @droplets[instance[:droplet_id].to_s]
droplet.delete(instance[:instance_id])
- @droplets.delete(instance[:droplet_id]) if droplet.empty?
+ @droplets.delete(instance[:droplet_id].to_s) if droplet.empty?
schedule_snapshot
end
unless @disable_dir_cleanup

0 comments on commit 6945c00

Please sign in to comment.