[PATCH/foreman 1/1] Fixes #1305 - out of sync state takes precedence over error state in host list

Signed-off-by: Tim Speetjens <tim.speetjens@gmail.com>

··· --- app/helpers/hosts_helper.rb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/helpers/hosts_helper.rb b/app/helpers/hosts_helper.rb
index be0cc34…b79d9ce 100644
— a/app/helpers/hosts_helper.rb
+++ b/app/helpers/hosts_helper.rb
@@ -34,14 +34,14 @@ module HostsHelper
label = "No reports"
style = ""
short = “N”

  • elsif record.error?
  •  label = "Error"
    
  •  style = "important"
    
  •  short = "E"
    
    elsif record.no_report
    label = "Out of sync"
    style = "warning"
    short = “S”
  • elsif record.error?
  •  label = "Error"
    
  •  style = "important"
    
  •  short = "E"
    
    elsif record.changes?
    label = "Active"
    style = “notice”

    1.7.2.5