Add missing var, fix test case.
This commit is contained in:
@@ -42,6 +42,7 @@ def lbaas_task(worker, job):
|
||||
|
||||
logger = worker.logger
|
||||
driver = worker.driver
|
||||
data = job.data
|
||||
|
||||
logger.debug("Entered worker task")
|
||||
logger.debug("Received JSON message: %s" % json.dumps(data, indent=4))
|
||||
|
||||
@@ -15,7 +15,7 @@ class FakeJob(object):
|
||||
"""
|
||||
data: JSON object to convert to a string
|
||||
"""
|
||||
self.data = json.dumps(data)
|
||||
self.data = data
|
||||
|
||||
|
||||
class FakeWorker(object):
|
||||
|
||||
Reference in New Issue
Block a user