Commit bc426020 authored by Krzysztof Siedlecki's avatar Krzysztof Siedlecki

adding handling for use_custom_instance_list in dump_nodes_with_logexporter

parent 999e2e0c
...@@ -329,8 +329,13 @@ function find_non_logexported_nodes() { ...@@ -329,8 +329,13 @@ function find_non_logexported_nodes() {
} }
function dump_nodes_with_logexporter() { function dump_nodes_with_logexporter() {
echo "Detecting nodes in the cluster" if [[ -n "${use_custom_instance_list}" ]]; then
detect-node-names &> /dev/null echo "Dumping logs for nodes provided by log_dump_custom_get_instances() function"
NODE_NAMES=( $(log_dump_custom_get_instances node) )
else
echo "Detecting nodes in the cluster"
detect-node-names &> /dev/null
fi
if [[ -z "${NODE_NAMES:-}" ]]; then if [[ -z "${NODE_NAMES:-}" ]]; then
echo "No nodes found!" echo "No nodes found!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment