Fix the grains_for_mine function
diff --git a/_modules/heka_alarming.py b/_modules/heka_alarming.py
index 4212565..147335b 100644
--- a/_modules/heka_alarming.py
+++ b/_modules/heka_alarming.py
@@ -85,6 +85,13 @@
alarm = service_data.get('alarm')
if alarm:
filtered_grains[service_name] = {'alarm': alarm}
+ trigger = service_data.get('trigger')
+ if trigger:
+ if service_name in filtered_grains:
+ filtered_grains[service_name].update(
+ {'trigger': trigger})
+ else:
+ filtered_grains[service_name] = {'trigger': trigger}
alarm_cluster = service_data.get('alarm_cluster')
if alarm_cluster:
if service_name in filtered_grains: