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:
parent
82aec115be
commit
8eb367ab65
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user