summaryrefslogtreecommitdiff
path: root/scripts/keepalived
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-xscripts/keepalived/vyatta-keepalived.pl1
1 files changed, 1 insertions, 0 deletions
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);