From 481e7ac37759e4fc061d7e56a630eb16ea9b0f1c Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 28 May 2010 14:31:38 -0700 Subject: Fix 5521: Cannot Delete vif with vrrp configured. --- scripts/keepalived/vyatta-keepalived.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/keepalived/vyatta-keepalived.pl') diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl index e87c9f64..2c84f252 100755 --- a/scripts/keepalived/vyatta-keepalived.pl +++ b/scripts/keepalived/vyatta-keepalived.pl @@ -212,6 +212,7 @@ sub vrrp_get_sync_groups { sub vrrp_read_changes { my @lines = (); + return @lines if ! -e $changes_file; open(my $FILE, "<", $changes_file) or die "Error: read $!"; @lines = <$FILE>; close($FILE); -- cgit v1.2.3