aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:08:23 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:08:23 -0800
commit12fc88be4083d49752af89733a4d5ae89c715527 (patch)
tree916573d3295210cd1965d18a8853ddb011861c91
parentWork on better selection of status. (diff)
downloadbackend-12fc88be4083d49752af89733a4d5ae89c715527.tar.gz
backend-12fc88be4083d49752af89733a4d5ae89c715527.tar.bz2
backend-12fc88be4083d49752af89733a4d5ae89c715527.zip
Key hell.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--lib/storage.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/storage.rb b/lib/storage.rb
index 7cba45c..29311ad 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -91,8 +91,9 @@ module Ag::Storage
# Give elasticsearch some time to process the new index
status = $es.indices.status(index: indexname)
pp status
+ pp status['indices'][indexname]['shards']
status = status['indices'][indexname]['shards'].map do |k,v|
- v['routing']['state']
+ v[0]['routing']['state']
end
pp status
while $es.cluster.health['status'] != 'green' do