2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 19:57:47 +00:00

Gracefully disable localsession without fcntl

Windows does not have fcntl, but can work out of
band.  Allow out of band on Windows to work even
though localsession cannot.

Change-Id: Ia3c188b33582f2c62bef6cb1f9576ccec314506d
This commit is contained in:
Jarrod Johnson 2017-08-03 10:03:00 -04:00
parent f454c086ff
commit a8e523cc11

View File

@ -28,7 +28,10 @@ try:
from pyghmi.ipmi.private import session
except ImportError:
session = None
from pyghmi.ipmi.private import localsession
try:
from pyghmi.ipmi.private import localsession
except ImportError:
localsession = None
import pyghmi.ipmi.private.util as pygutil
import pyghmi.ipmi.sdr as sdr
import socket