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

- removed superflous --target-version (see command info for this)

parent bf4f54d1
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ sub description {
}
sub opt_spec {
return(
["target-version|V" => "get current elasticsearch version"],
["verbose|v" => "enable verbose output"],
["debug" => "enable user agent debug output"],
["datemode" => hidden => {one_of => [
......@@ -82,14 +81,6 @@ sub validate_args {
sub execute {
my ($self, $opt, $args) = @_;
if ($opt->{target_version}) {
say SLUB::LZA::TA::Archivematica::Elasticsearch::version_elasticsearch(
$SLUB::LZA::TA::config{elasticsearchprotocol},
$SLUB::LZA::TA::config{elasticsearchhost},
$SLUB::LZA::TA::config{elasticsearchport}
);
exit (0);
}
my $query = SLUB::LZA::TA::Archivematica::Elasticsearch::prepare_query($opt);
my $response = SLUB::LZA::TA::Archivematica::Elasticsearch::query_elasticsearch_count(
$SLUB::LZA::TA::config{elasticsearchprotocol},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment