NSSDB: Let certutil decide its default db type

CertDB no longer makes any assumptions about the default db type of a NSS
DB. Instead it let's certutil decide when dbtype is set to 'auto'. This
makes it much easier to support F27 and F28 from a single code base.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Christian Heimes
2018-02-08 13:40:34 +01:00
parent c5fb6c8502
commit 492e3c9b1e
7 changed files with 89 additions and 35 deletions

View File

@@ -45,7 +45,6 @@ from ipalib.errors import CertificateOperationError
from ipalib.install import certstore
from ipalib.util import strip_csr_header
from ipalib.text import _
from ipaplatform.constants import constants
from ipaplatform.paths import paths
@@ -725,7 +724,6 @@ class CertDB(object):
"""
return (
self.nssdb.dbtype == 'dbm' and
self.nssdb.dbtype != constants.NSS_DEFAULT_DBTYPE and
self.exists()
)