diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-20 15:56:28 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-20 15:56:28 (GMT) |
commit | ce3eaa25e1c6f39b7a1266592de22c1bfbc48f5d (patch) | |
tree | 22a7e962a95c0d81daa196d721c6e96095f4b6f1 | |
parent | bb38a5735216c1a2eefc9449a5a6b49733674c16 (diff) | |
download | monitoring-plugins-ce3eaa25e1c6f39b7a1266592de22c1bfbc48f5d.tar.gz |
Fix NPTest.pm not asking for unconfigured variables
It appeats STDERR isn't a tty anymore during tests, but since we type
from tty to STDIN it should be bound to our tty (and works for me).
-rw-r--r-- | NPTest.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -347,7 +347,7 @@ sub getTestParameter | |||
347 | } | 347 | } |
348 | 348 | ||
349 | # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set) | 349 | # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set) |
350 | return "" unless (-t STDERR); | 350 | return "" unless (-t STDIN); |
351 | 351 | ||
352 | my $userResponse = ""; | 352 | my $userResponse = ""; |
353 | 353 | ||