From 5385e26a691fb7d545b369c70060f3de64e7d231 Mon Sep 17 00:00:00 2001 From: Sawan Choudhary Date: Mon, 1 Jul 2019 06:50:08 -0700 Subject: [PATCH] cloudpulse fails to check last test run Change-Id: I1afb28045a04ad4fdc32ebf4e15a4e24fa23cdc6 --- cloudpulse/TestManager/TestManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudpulse/TestManager/TestManager.py b/cloudpulse/TestManager/TestManager.py index dfd8468..69102a6 100755 --- a/cloudpulse/TestManager/TestManager.py +++ b/cloudpulse/TestManager/TestManager.py @@ -63,7 +63,7 @@ class Periodic_Task(object): LOG.debug("Unable to get last run time of tests %s" % str(e)) return False if tests: - lasttest = objects.Cpulse.list(context, filters=filters)[-1] + lasttest = tests[-1] lastime = lasttest['created_at'] timenow = datetime.datetime.now(pytz.utc) timesincelast = (timenow - lastime).seconds