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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user