Ver Fonte

check_by_ssh: tests expand key and config path

some systems do not expand the path automatically.
Sven Nierlein há 12 anos atrás
pai
commit
b83904c528
1 ficheiros alterados com 4 adições e 0 exclusões
  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++) {