]> arthur.barton.de Git - netdata.git/commitdiff
elasticsearch: typos;minor fixes
authorIlya <ilyamaschenko@gmail.com>
Fri, 20 Jan 2017 04:58:55 +0000 (13:58 +0900)
committerIlya <ilyamaschenko@gmail.com>
Fri, 20 Jan 2017 04:58:55 +0000 (13:58 +0900)
python.d/elasticsearch.chart.py

index ec769eec0c3eb8a153a2ac35176ce3e210503b5d..735ef32b6c637545969ca0099e808d95ce10e113 100644 (file)
@@ -162,7 +162,7 @@ CHARTS = {
             ['store_size_in_bytes', 'size', 'absolute', 1, 1048567]
         ]},
     'cluster_stats_indices_shards': {
-        'options': [None, 'Inidecs and shards statistics', 'count', 'Cluster stats API',
+        'options': [None, 'Indices and shards statistics', 'count', 'Cluster stats API',
                     'es.cluster_stats_ind_sha', 'stacked'],
         'lines': [
             ['indices_count', 'indices', 'absolute'],
@@ -256,10 +256,7 @@ class Service(UrlService):
             thread.join()
             result.update(queue.get())
 
-        if result:
-            return result
-        else:
-            return None
+        return result or None
 
     def _get_cluster_health(self, queue, url):
         """