Use is_ipa_configured from ipalib.facts

A couple of places still used the deprecated installutils version.

https://pagure.io/freeipa/issue/8458

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
This commit is contained in:
Rob Crittenden 2020-08-11 11:12:55 -04:00 committed by Florence Blanc-Renaud
parent a8d5e6bbfe
commit 2bdb18d56f
2 changed files with 2 additions and 2 deletions

View File

@ -665,7 +665,7 @@ def check_server_configuration():
Most convenient use case for the function is in install tools that require
configured IPA for its function.
"""
if not is_ipa_configured():
if not facts.is_ipa_configured():
raise ScriptError("IPA is not configured on this system.",
rval=SERVER_NOT_CONFIGURED)

View File

@ -9,7 +9,7 @@ from ipaplatform.paths import paths
from ipapython.admintool import AdminTool
from ipapython.directivesetter import DirectiveSetter
from ipaserver.install import cainstance
from ipaserver.install.installutils import is_ipa_configured
from ipalib.facts import is_ipa_configured
# Manages the FreeIPA ACME service on a per-server basis.
#