From d6d0e6acf15592a0547bbed90bd16ba8b813f0ed Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sat, 29 May 2010 15:18:36 -0700 Subject: Fix "show vrrp" regression caused by b68ac2b1969060ea6fa2f011a3107c83ad26e96d. --- lib/Vyatta/Keepalived.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index 403d385..870af98 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -169,10 +169,10 @@ sub get_state_files { my @state_files; if ($group eq "all") { - @state_files = grep { /^vrrpd_$intf.*\.state$/ } $sdir; + @state_files = grep { /^vrrpd_$intf.*\.state$/ } readdir($sdir); } else { my $intf_group = $intf . "_" . $group . ".state"; - @state_files = grep { /^vrrpd_$intf_group$/ } $sdir; + @state_files = grep { /^vrrpd_$intf_group$/ } readdir($sdir); } close $sdir; -- cgit v1.2.3