Ignore lint errors if pysssd_murmur and samba4 support not installed when building client code.

Since ipalib.plugins.trust has both client-side and server-side code,
this is the only way to properly handle linting errors.
This commit is contained in:
Alexander Bokovoy
2012-08-15 23:41:19 -04:00
committed by Rob Crittenden
parent 59df038f87
commit cea40170f5
+2 -2
View File
@@ -25,14 +25,14 @@ from ipalib import errors
from ipapython import ipautil
from ipalib import util
try:
import pysss_murmur
import pysss_murmur #pylint: disable=F0401
_murmur_installed = True
except Exception, e:
_murmur_installed = False
if api.env.in_server and api.env.context in ['lite', 'server']:
try:
import ipaserver.dcerpc
import ipaserver.dcerpc #pylint: disable=F0401
_bindings_installed = True
except Exception, e:
_bindings_installed = False