Преглед на файлове

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++) {