diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2012-06-28 22:54:38 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2012-06-28 22:54:38 -0400 |
commit | e70d62aaf96830a6480b147e6c90c30aeef31a54 (patch) | |
tree | 8fcfa608a5770ec364b2c272d738e22ff72cbc55 /t/Nagios-Plugin-Getopt-04.t | |
parent | bacb16365718f55bbb09f9d990011e3829691f16 (diff) | |
download | monitoring-plugin-perl-e70d62aaf96830a6480b147e6c90c30aeef31a54.tar.gz |
Fix a bug where default file used is not shown
When a default file is used but no section is found (ex. below using
"bad_section"), the plugin dies with:
Invalid section 'bad_section' in config file ''
This patch add a function to Nagios::Plugin::Config that returns the last
used file, and use it to return a file name when we have none.
Diffstat (limited to 't/Nagios-Plugin-Getopt-04.t')
0 files changed, 0 insertions, 0 deletions