浏览代码

check_junos_bgp: another typo

Rico Glöckner 12 年之前
父节点
当前提交
57f3eba575
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      check_junos_bgp.pl

+ 1 - 1
check_junos_bgp.pl

@@ -336,7 +336,7 @@ sub get_neighbor_information
 	my $res;
 	my %args;
 
-	if ($conf{'logical-router'} || $conf{'instance'}) {
+	if (($conf{'logical-router'} ne '') || ($conf{'instance'} ne '')) {
 		if ($conf{'logical-router'} ne '') {
 			$args{'logical-router'} = $conf{'logical-router'}; 
 		}