From 6d7715c67fa21b75590782b77d5b8154a19c6c9e Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Tue, 24 Mar 2020 09:56:43 +0100 Subject: [PATCH] Avoid self parent --- pandora_agents/unix/plugins/route_parser | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_agents/unix/plugins/route_parser b/pandora_agents/unix/plugins/route_parser index 40cfcea36f..c67c668a43 100644 --- a/pandora_agents/unix/plugins/route_parser +++ b/pandora_agents/unix/plugins/route_parser @@ -612,6 +612,12 @@ sub get_steps { $desc = 'Step unreachable'; } + my $name = $preffix . $host; + + if (defined $previous && $name eq $previous) { + next; + } + push @modules, { name => $preffix . $host, type => "generic_data", @@ -710,6 +716,12 @@ sub get_steps { $desc = 'Step unreachable'; } + my $name = $preffix . $host; + + if (defined $previous && $name eq $previous) { + next; + } + push @modules, { name => $preffix . $host, type => "generic_data",