diff options
author | Alex Legler <alex@a3li.li> | 2014-04-30 14:12:25 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2014-04-30 14:12:25 +0200 |
commit | 38945e1b33ea90486f495681a6c7c2ba6e3a0fd7 (patch) | |
tree | b9cb1b078e764db3da6736f93655f31dd2d13f87 /lib | |
parent | Load site_logo.png from CDN as well (diff) | |
download | infra-status-38945e1b33ea90486f495681a6c7c2ba6e3a0fd7.tar.gz infra-status-38945e1b33ea90486f495681a6c7c2ba6e3a0fd7.tar.bz2 infra-status-38945e1b33ea90486f495681a6c7c2ba6e3a0fd7.zip |
Be more resilient to status.json update failures
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index 9b37c49..b321f0a 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -35,6 +35,7 @@ helpers do end def service_status(service) + return 'na' unless ServiceRegistry.instance.services.has_key? service active_notices = NoticeStore.instance.active_notices_for(service) unless (forced_state = get_forced_state(active_notices)) == nil @@ -130,4 +131,4 @@ helpers do end }.compact.reverse.join(' ') end -end
\ No newline at end of file +end |