Trival fix a collector bug

Trival fix of a collector bug.

Change-Id: Ic993b3b90e1f7d67cfd75558046733b14a087739
This commit is contained in:
Kevin_Zheng 2016-01-08 15:18:25 +08:00
parent f158a2e5de
commit 874b9ec081
1 changed files with 1 additions and 2 deletions

View File

@ -353,8 +353,7 @@ class Collector(periodic_task.PeriodicTasks):
:param current_vms: A list of VM at the current time frame.
:return: A list of VM UUIDs removed since the last time frame.
"""
return substract_lists(previous_vms, current_vms)
return self.substract_lists(previous_vms, current_vms)
def substract_lists(self, list1, list2):
""" Return the elements of list1 that are not in list2.