Skip to content

Commit

Permalink
Merge pull request #331 from shinken-monitoring/develop
Browse files Browse the repository at this point in the history
Fix #330
  • Loading branch information
mohierf committed Sep 8, 2015
2 parents 1d14d4b + f64669e commit 0733eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/datamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def get_overall_it_state(self, user):
hosts = self.get_important_elements(user, type='host', sorter=worse_first)
services = self.get_important_elements(user, type='service', sorter=worse_first)
hosts_state = hosts[0].state_id if hosts else 0
services_state = services[0].state_id if hosts else 0
services_state = services[0].state_id if services else 0
return hosts_state, services_state

def get_important_elements(self, user, type='all', sorter=worse_first):
Expand Down

0 comments on commit 0733eb8

Please sign in to comment.