summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@orbis-terrarum.net>2014-08-03 11:48:51 -0700
committerRobin H. Johnson <robbat2@orbis-terrarum.net>2014-08-03 11:48:51 -0700
commitdd38ab70df3a402708252e05a7b678138e2f5ebc (patch)
tree6d372938bb62e0e197e3cc62bc6e646348e0bcf8
parentFix typo. (diff)
downloadinfra-status-dd38ab70df3a402708252e05a7b678138e2f5ebc.tar.gz
infra-status-dd38ab70df3a402708252e05a7b678138e2f5ebc.tar.bz2
infra-status-dd38ab70df3a402708252e05a7b678138e2f5ebc.zip
More debug.
Signed-off-by: Robin H. Johnson <robbat2@orbis-terrarum.net>
-rw-r--r--lib/helpers.rb4
1 files changed, 3 insertions, 1 deletions
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}\"