Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix: instance cleanup

Change-Id: Ib0e0ce10abf5f10de87eb61e15bdc7cbb3933964
  • Loading branch information...
commit 6945c009778bc804ccb177719c1611b346a6b7b9 1 parent 525f6cf
Bob Nugmanov bnugmanov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dea/agent.rb
4 lib/dea/agent.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.