cloudpulse fails to check last test run
Change-Id: I1afb28045a04ad4fdc32ebf4e15a4e24fa23cdc6
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user