1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

fix for ovirt python sdk types

This commit is contained in:
Adolfo Gómez García 2017-03-22 12:03:11 +01:00
parent a80fc629a2
commit e99c77a97f

View File

@ -5,7 +5,13 @@ Created on Nov 14, 2012
'''
import ovirtsdk4 as ovirt
import oivrtsdk4.types as ovirtTypes # @UnresolvedImport @UnusedImport
# Sometimes, we import ovirtsdk4 but "types" does not get imported... event can't be found
# With this seems to work propertly
try:
from ovirtsdk4 import types as ovirtTypes # @UnresolvedImport @UnusedImport
except:
pass
import threading
import logging