Skip to content

Commit

Permalink
Merge 85c455e into 5e17779
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Mar 29, 2018
2 parents 5e17779 + 85c455e commit f37240e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion alignak_backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,8 @@ def pre_host_patch(updates, original):
services_drv = current_app.data.driver.db['service']
services = services_drv.find({'host': original['_id']})
for service in services:
if service['ls_state_type'] == 'HARD':
# Only for HARD states and monitored services
if service['ls_state_type'] == 'HARD' and service['_overall_state_id'] < 5:
overall_state = max(overall_state, service['_overall_state_id'])

# Get the host services overall states
Expand Down
2 changes: 1 addition & 1 deletion bin/rc.d/alignak-backend
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Default value: "/var/log/${name}/${name}.log"
# Log file name.
#
# alignak_backend_lpid_file (string):
# alignak_backend_pid_file (string):
# Default value: "/var/run/${name}/${name}.pid"
# PID file name.
#
Expand Down

0 comments on commit f37240e

Please sign in to comment.