]> git.uio.no Git - check_openmanage.git/commitdiff
* version 3.5.2-beta2
authortrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Mon, 26 Oct 2009 21:29:20 +0000 (21:29 +0000)
committertrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Mon, 26 Oct 2009 21:29:20 +0000 (21:29 +0000)
* Mixed high and low-precedence booleans at line 744, column 6.  See
  page 70 of PBP.  (Severity: 4)

git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_openmanage@15562 e53b7cee-c147-0410-b3a0-ae4c1fa63963

check_openmanage

index a26457bf9d6d3f44587bcac90d62157d6f9e43a7..fc1d7f42b0ad76437ec85dfcaf49bc0aa0f64632 100755 (executable)
@@ -56,7 +56,7 @@ if (! isatty(*STDOUT)) {
 
 # Version and similar info
 $NAME    = 'check_openmanage';
-$VERSION = '3.5.2-beta1';
+$VERSION = '3.5.2-beta2';
 $AUTHOR  = 'Trond H. Amundsen';
 $CONTACT = 't.h.amundsen@usit.uio.no';
 
@@ -741,7 +741,7 @@ sub adjust_checks {
            print qq{ERROR: Wrong simultaneous usage of the "--only" and "--check" options\n};
            exit $E_UNKNOWN;
        }
-       if (! exists $check{$opt{only}} and $opt{only} ne 'chassis') {
+       if (! exists $check{$opt{only}} && $opt{only} ne 'chassis') {
            print qq{ERROR: "$opt{only}" is not a known keyword for the "--only" option\n};
            exit $E_UNKNOWN;
        }