Merge "correctly unnest channel config"

This commit is contained in:
Jenkins 2014-10-01 20:15:29 +00:00 committed by Gerrit Code Review
commit 314adc30e3

View File

@ -224,11 +224,12 @@ class MessageConfig(dict):
class ChannelConfig(object):
def __init__(self, data):
self.data = data
# for compatibility reasons we support a pre channel hierarchy
# model of the world.
if 'channels' in data:
self.data = data['channels']
data = data['channels']
self.data = data
keys = data.keys()
for key in keys: