[nagiosplug] check_by_ssh: tests expand key and config path

"Nagios Plugin Development" <[email protected]> Tue, 17 Sep 2013 21:40:20 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
    Module: nagiosplug
    Branch: master
    Commit: b83904c528d98a6eaed570cf82e0595107bab53e
    Author: Sven Nierlein <[email protected]>
 Committer: Sven Nierlein <[email protected]>
      Date: Tue Sep 17 11:34:06 2013 +0200
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=b83904c

check_by_ssh: tests expand key and config path

some systems do not expand the path automatically.

---

 plugins/t/check_by_ssh.t |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/plugins/t/check_by_ssh.t b/plugins/t/check_by_ssh.t
index 8d1b190..4797390 100644
--- a/plugins/t/check_by_ssh.t
+++ b/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++) {


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk