Skip to content

Commit

Permalink
Enh: also give the command_name in a check_result brok
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégory Starck committed Apr 24, 2015
1 parent c46d941 commit 5478f7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shinken/objects/schedulingitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,3 +1688,10 @@ def eval_triggers(self):
"We got an exception from a trigger on %s for %s",
self.get_full_name().decode('utf8', 'ignore'), str(traceback.format_exc())
)

def fill_data_brok_from(self, data, brok_type):
super(SchedulingItem, self).fill_data_brok_from(data, brok_type)
# workaround/easy trick to have the command_name of this
# SchedulingItem in its check_result brok
if brok_type == 'check_result':
data['command_name'] = self.check_command.command.command_name

0 comments on commit 5478f7f

Please sign in to comment.