From 61c96147dc6ccacfdbc28fe4f4e135ecacfbc72d Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 1 Oct 2014 15:53:09 -0400 Subject: [PATCH] correctly unnest channel config While we were storing the correct self.data for nested channel configs, we weren't actually using self.data to when we attempted to connect to irc channels. Fixup the data variable early enough that IRC channel connection in the ER bot should work again. Change-Id: I2758fb79e3b424def53415d6fdc41fbc99d0ca9f --- elastic_recheck/bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elastic_recheck/bot.py b/elastic_recheck/bot.py index ca856cbd..fea318dc 100755 --- a/elastic_recheck/bot.py +++ b/elastic_recheck/bot.py @@ -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: