From 7196536f50fc3e1d533b5ab53985944c056daab5 Mon Sep 17 00:00:00 2001 From: Fix L Date: Tue, 15 Dec 2015 08:13:38 +0100 Subject: [PATCH] Add default option for ElasticSearch Plugin --- apps/elasticsearch/mode/cluster.pm | 4 ++-- apps/elasticsearch/mode/indices.pm | 4 ++-- apps/elasticsearch/mode/nodescount.pm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/elasticsearch/mode/cluster.pm b/apps/elasticsearch/mode/cluster.pm index a72dedd5f0..2b80ef9380 100644 --- a/apps/elasticsearch/mode/cluster.pm +++ b/apps/elasticsearch/mode/cluster.pm @@ -45,8 +45,8 @@ sub new { { "hostname:s" => { name => 'hostname' }, "port:s" => { name => 'port', default => '9200'}, - "proto:s" => { name => 'proto' }, - "urlpath:s" => { name => 'url_path' }, + "proto:s" => { name => 'proto', default => 'http'}, + "urlpath:s" => { name => 'url_path', default => '/'}, "credentials" => { name => 'credentials' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, diff --git a/apps/elasticsearch/mode/indices.pm b/apps/elasticsearch/mode/indices.pm index 42c4e5b633..0d4d9f43b9 100644 --- a/apps/elasticsearch/mode/indices.pm +++ b/apps/elasticsearch/mode/indices.pm @@ -52,8 +52,8 @@ sub new { { "hostname:s" => { name => 'hostname' }, "port:s" => { name => 'port', default => '9200'}, - "proto:s" => { name => 'proto' }, - "urlpath:s" => { name => 'url_path' }, + "proto:s" => { name => 'proto', default => 'http'}, + "urlpath:s" => { name => 'url_path', default => '/'}, "credentials" => { name => 'credentials' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' }, diff --git a/apps/elasticsearch/mode/nodescount.pm b/apps/elasticsearch/mode/nodescount.pm index d55e25f3c3..3747c475be 100644 --- a/apps/elasticsearch/mode/nodescount.pm +++ b/apps/elasticsearch/mode/nodescount.pm @@ -37,8 +37,8 @@ sub new { { "hostname:s" => { name => 'hostname' }, "port:s" => { name => 'port', default => '9200'}, - "proto:s" => { name => 'proto' }, - "urlpath:s" => { name => 'url_path' }, + "proto:s" => { name => 'proto', default => 'http'}, + "urlpath:s" => { name => 'url_path', default => '/'}, "credentials" => { name => 'credentials' }, "username:s" => { name => 'username' }, "password:s" => { name => 'password' },