Skip to content

Commit

Permalink
Update to newer pywbem exception call
Browse files Browse the repository at this point in the history
  • Loading branch information
Napsty committed Feb 14, 2025
1 parent 1fe3fb3 commit d75f2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_esxi_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
#@---------------------------------------------------
#@ Date : 20250214
#@ Author : Claudio Kuenzler
#@ Reason : Update to newer pywbem exception call, handle HTTPError
#@ Reason : Update to newer pywbem exception call, catch HTTPError
#@---------------------------------------------------

import sys
Expand Down Expand Up @@ -742,7 +742,7 @@ def handler(signum, frame):
verboseoutput("Connection to "+hosturl)
wbemclient = pywbem.WBEMConnection(hosturl, (user,password), NS, no_verification=True)

# Backward compatibility for pywbem <= 1.0.0
# Backward compatibility for older pywbem exceptions, big thanks to Claire M.!
if Version(pywbemversion) >= Version("1.0.0"):
verboseoutput("pywbem is 1.0.0 or newer")
import pywbem._cim_operations as PywbemCimOperations
Expand Down

0 comments on commit d75f2bb

Please sign in to comment.