Author: tmckay Date: 2012-10-18 18:02:31 +0000 (Thu, 18 Oct 2012) New Revision: 5514
Modified: trunk/cumin/python/cumin/model.py Log: Code for adding missing quota values was wrong. KeyError was raised, which caused a whole new ObjectStore to be created by the enclosing routine.
Modified: trunk/cumin/python/cumin/model.py =================================================================== --- trunk/cumin/python/cumin/model.py 2012-10-17 19:20:29 UTC (rev 5513) +++ trunk/cumin/python/cumin/model.py 2012-10-18 18:02:31 UTC (rev 5514) @@ -934,8 +934,8 @@ for config in self.configs: action = FetchRawConfigSet() new_configs = list() - for group in self.configs.keys(): - if group not in self.data.keys() or \ + for group in self.configs[config]: + if group not in self.data[config] or \ self.data[config][group].error or \ not self.data[config][group].data: new_configs.append(group)
cumin-developers@lists.fedorahosted.org