From fb038edcda1c345ba439307e4b17a00e69b40a34 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Mon, 1 Jun 2015 19:52:59 +0300 Subject: [PATCH] check_esxi_hardware.py: revert last change 1. This change was wrong and inappropriate. 2. The issue I tried to fix was caused by the bug in python library pywbem: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780264 --- check_esxi_hardware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/check_esxi_hardware.py b/check_esxi_hardware.py index 6f816e7..876a026 100755 --- a/check_esxi_hardware.py +++ b/check_esxi_hardware.py @@ -223,7 +223,6 @@ import pywbem import re import string from optparse import OptionParser,OptionGroup -import os version = '20150119' @@ -567,7 +566,7 @@ if os_platform != "win32": import signal def handler(signum, frame): print 'UNKNOWN: Execution time too long!' - os._exit(ExitUnknown) + sys.exit(ExitUnknown) # connection to host verboseoutput("Connection to "+hosturl)