mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add pylint guard to import of ipaplatform in ipapython.certdb
ipaplatform is not available in PyPI wheel packages. The guard silences a pylint error in wheel pylint tests. https://fedorahosted.org/freeipa/ticket/6474 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
committed by
Petr Vobornik
parent
5dc5960e71
commit
fb307ba582
@@ -32,14 +32,16 @@ from ipapython import ipautil
|
||||
from ipalib import x509
|
||||
|
||||
try:
|
||||
from ipaplatform.paths import paths
|
||||
CERTUTIL = paths.CERTUTIL
|
||||
PK12UTIL = paths.PK12UTIL
|
||||
OPENSSL = paths.OPENSSL
|
||||
from ipaplatform.paths import paths # pylint: disable=import-error
|
||||
except ImportError:
|
||||
CERTUTIL = '/usr/bin/certutil'
|
||||
PK12UTIL = '/usr/bin/pk12util'
|
||||
OPENSSL = '/usr/bin/openssl'
|
||||
else:
|
||||
CERTUTIL = paths.CERTUTIL
|
||||
PK12UTIL = paths.PK12UTIL
|
||||
OPENSSL = paths.OPENSSL
|
||||
|
||||
|
||||
CA_NICKNAME_FMT = "%s IPA CA"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user