commit:     dd38ab70df3a402708252e05a7b678138e2f5ebc
Author:     Robin H. Johnson <robbat2 <AT> orbis-terrarum <DOT> net>
AuthorDate: Sun Aug  3 18:48:51 2014 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Aug  3 18:48:51 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=dd38ab70

More debug.

Signed-off-by: Robin H. Johnson <robbat2 <AT> orbis-terrarum.net>

---
 lib/helpers.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/helpers.rb b/lib/helpers.rb
index 129f9d1..6b16616 100644
--- a/lib/helpers.rb
+++ b/lib/helpers.rb
@@ -25,7 +25,9 @@ helpers do
       _service_status = service_status(service)
       _status_text = status_text(_service_status)
       _service_info = service_info(service)
-      service_name = ServiceRegistry.instance.services[service][:name]
+      #service_name = ServiceRegistry.instance.services[service][:name]
+      service_array = ServiceRegistry.instance.services[service]
+      service_name = service_array.nil? ? 'UNKNOWN NAME' : 
service_array[:name] 
       data_service_name = service_name.gsub('"', "'")
       content << "
         <a class=\"list-group-item has-tooltip notice-link\" href=\"#notices\" 
title=\"#{_status_text}\"

Reply via email to