From f8ed818dc1663fe2325696ba43dc63a91488ffe1 Mon Sep 17 00:00:00 2001 From: Christian Ramseyer Date: Fri, 3 Nov 2023 22:38:39 +0100 Subject: [PATCH] FortiOS.pm: tabs to spaces cleanup --- .../Netdisco/SSHCollector/Platform/FortiOS.pm | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm b/lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm index edb3806e..71e5faaf 100644 --- a/lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm +++ b/lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm @@ -50,18 +50,18 @@ sub get_paginated_output { if ($match) { if ($match =~ $more_pattern) { $more_flag = 1; - @lines = split(/\R/, $before); - push(@alllines, grep {$_ =~ /\S/} @lines); - debug("skipping through --More-- pagination"); + @lines = split(/\R/, $before); + push(@alllines, grep {$_ =~ /\S/} @lines); + debug("skipping through --More-- pagination"); $expect->send(" "); } elsif ($match =~ $prompt) { $more_flag = 0; - @lines = split(/\R/, $before); - push(@alllines, grep {$_ =~ /\S/} @lines); - foreach my $line (@alllines) { - debug("output collected: $line") if $line; - } - last; + @lines = split(/\R/, $before); + push(@alllines, grep {$_ =~ /\S/} @lines); + foreach my $line (@alllines) { + debug("output collected: $line") if $line; + } + last; } } } @@ -142,7 +142,7 @@ sub arpnip { foreach (@data) { if ($_ && /^Virtual domain configuration: multiple$/) { $multi_vdom = 1; - last; + last; } } my $arpentries = []; @@ -158,9 +158,9 @@ sub arpnip { foreach (@$vdoms) { $expect->send("config vdom\n"); - $expect->expect($timeout, -re, $prompt); - $expect->send("edit $_\n"); - debug ("switched to config vdom; edit $_"); + $expect->expect($timeout, -re, $prompt); + $expect->send("edit $_\n"); + debug ("switched to config vdom; edit $_"); $expect->expect($timeout, -re, $prompt); arpnip_context($expect, $prompt, $timeout, $arpentries); $expect->send("end\n");