Make worker JSON message case sensitive.

Fixes bug 1091316

It has been decided that we should not change the casing of the
JSON fields for the response that we send back to the API server.

Change-Id: I8c8e3d43cdc98520597381dc7b574a0575c1564f
This commit is contained in:
David Shrewsbury
2012-12-17 12:03:59 -05:00
parent 445496a276
commit 1146335192
2 changed files with 15 additions and 7 deletions

View File

@@ -24,14 +24,13 @@ class LBaaSController(object):
RESPONSE_SUCCESS = "PASS"
ACTION_FIELD = 'hpcs_action'
RESPONSE_FIELD = 'hpcs_response'
LBLIST_FIELD = 'loadbalancers'
LBLIST_FIELD = 'loadBalancers'
def __init__(self, logger, driver, json_msg):
self.logger = logger
self.driver = driver
self.logger.debug("Entered LBaaSController")
# Standardize case on JSON elements
self.msg = dict((k.lower(), v) for k, v in json_msg.iteritems())
self.msg = json_msg
def run(self):
"""