From 79ae84ea07e66d2b592b6fdca045ca8a611595c8 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 11 Jun 2013 10:17:38 -0400 Subject: Trim here to avoid an error from output containing a newline --- config/quagga_ospfd/quagga_ospfd.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc index 402e6a30..aabd27a8 100644 --- a/config/quagga_ospfd/quagga_ospfd.inc +++ b/config/quagga_ospfd/quagga_ospfd.inc @@ -378,7 +378,7 @@ function quagga_ospfd_put_raw_config($conffile) { } function quagga_get_carp_status_by_ip($ipaddr) { - $iface = find_carp_interface($ipaddr); + $iface = trim(find_carp_interface($ipaddr)); if ($iface) { $status = get_carp_interface_status($iface); // If there is no status for that interface, return null. -- cgit v1.2.3