Skip to content
Snippets Groups Projects
Commit 1629930b authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- disabling warnings in output

parent 0405ce1b
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ BEGIN { ...@@ -51,6 +51,7 @@ BEGIN {
sub common_global_validate { sub common_global_validate {
my ($self, $opt, $args) = @_; my ($self, $opt, $args) = @_;
no warnings;
foreach my $override (qw(elasticsearch_host elasticsearch_port http_only permanent_volume)) { foreach my $override (qw(elasticsearch_host elasticsearch_port http_only permanent_volume)) {
if ( if (
(exists $opt->{$override}) (exists $opt->{$override})
...@@ -63,6 +64,7 @@ HINT ...@@ -63,6 +64,7 @@ HINT
$config{$override} = $opt->{$override}; $config{$override} = $opt->{$override};
} }
} }
use warnings;
# option overrides config # option overrides config
$config{elasticsearch_protocol} = $config{http_only} ? 'http' : 'https'; $config{elasticsearch_protocol} = $config{http_only} ? 'http' : 'https';
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment