mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 03:37: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:
parent
f454c086ff
commit
a8e523cc11
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user