Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix perl error that shows when running under exabgp on startup due to…
Browse files Browse the repository at this point in the history
… undefined variable
  • Loading branch information
shthead committed May 13, 2016
1 parent 2a79da3 commit 821cd2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion healthcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ sub update_status_file {
open STATUSFH, '>', $statusfile;
print STATUSFH "Service State: $status\n";
print STATUSFH "Last State Change: $current_time\n";
print STATUSFH "Nexthop: $service_nexthop\n";
if (! defined $service_nexthop) { print STATUSFH "Nexthop: ".get_value('nexthop')."\n"; }
else { print STATUSFH "Nexthop: $service_nexthop\n"; }
print STATUSFH "Managed IP's: ";
foreach my $ip (@service_ips) {
print STATUSFH "$ip ";
Expand Down

0 comments on commit 821cd2c

Please sign in to comment.