Tiny resource tracker cleanup

We're going to the bother of initializing an is_deleted_instance boolean
and then not using it everywhere we can.

Change-Id: I78c037491de336999df0f7a645a6fbab5b26d88c
This commit is contained in:
Mark McLoughlin 2012-11-02 11:13:30 +00:00
parent 82aec115be
commit 8eb367ab65
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ class ResourceTracker(object):
self.tracked_instances[uuid] = 1
sign = 1
if instance['vm_state'] == vm_states.DELETED:
if is_deleted_instance:
self.tracked_instances.pop(uuid)
sign = -1