Add missing var, fix test case.

This commit is contained in:
David Shrewsbury
2012-10-07 15:07:08 -04:00
parent 163222719a
commit 5d0b5ea028
2 changed files with 2 additions and 1 deletions

View File

@@ -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))

View File

@@ -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):