소스 검색

check_by_ssh: tests expand key and config path

some systems do not expand the path automatically.
Sven Nierlein 12 년 전
부모
커밋
b83904c528
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      plugins/t/check_by_ssh.t

+ 4 - 0
plugins/t/check_by_ssh.t

@@ -44,6 +44,10 @@ for (@responce) {
 
 my $result;
 
+# expand paths
+$ssh_key  = glob($ssh_key)  if $ssh_key;
+$ssh_conf = glob($ssh_conf) if $ssh_conf;
+
 ## Single active checks
 
 for (my $i=0; $i<4; $i++) {