summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/keepalived/vyatta-clear-vrrp.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/keepalived/vyatta-clear-vrrp.pl b/scripts/keepalived/vyatta-clear-vrrp.pl
index a22b4f14..38d50149 100644
--- a/scripts/keepalived/vyatta-clear-vrrp.pl
+++ b/scripts/keepalived/vyatta-clear-vrrp.pl
@@ -256,8 +256,7 @@ if ($action eq "clear_master") {
Vyatta::Keepalived::vrrp_log("vrrp clear_master $vrrp_intf $vrrp_group");
# should add a file lock
- local($/, *FILE); # slurp mode
-
+ local($/); # slurp mode
open my $f, '<', $conf_file or die "Couldn't open $conf_file\n";
my $conf = <$f>;
close $f;