mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use os.path.isfile() and isdir()
Replace custom file_exists() and dir_exists() functions with proper functions from Python's stdlib. The change also gets rid of pylint's invalid bad-python3-import error, https://github.com/PyCQA/pylint/issues/1565 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
committed by
Stanislav Laznicka
parent
fad88b358b
commit
b29db07c3b
@@ -338,7 +338,7 @@ class OpenDNSSECInstance(service.Service):
|
||||
restore_list = [paths.OPENDNSSEC_CONF_FILE, paths.OPENDNSSEC_KASP_FILE,
|
||||
paths.SYSCONFIG_ODS, paths.OPENDNSSEC_ZONELIST_FILE]
|
||||
|
||||
if ipautil.file_exists(paths.OPENDNSSEC_KASP_DB):
|
||||
if os.path.isfile(paths.OPENDNSSEC_KASP_DB):
|
||||
|
||||
# force to export data
|
||||
cmd = [paths.IPA_ODS_EXPORTER, 'ipa-full-update']
|
||||
|
||||
Reference in New Issue
Block a user