state compiler: relax aggregate conditional check

Fixes #27961.
This commit is contained in:
Justin Findlay 2015-11-13 20:00:07 -07:00
parent af297bb0ae
commit eb9970019a

View file

@ -652,7 +652,7 @@ class State(object):
Execute the aggregation systems to runtime modify the low chunk
'''
agg_opt = self.functions['config.option']('state_aggregate')
if low.get('aggregate') is True:
if 'aggregate' in low:
agg_opt = low['aggregate']
if agg_opt is True:
agg_opt = [low['state']]