mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
a8d5e6bbfe
commit
2bdb18d56f
@ -665,7 +665,7 @@ def check_server_configuration():
|
|||||||
Most convenient use case for the function is in install tools that require
|
Most convenient use case for the function is in install tools that require
|
||||||
configured IPA for its function.
|
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.",
|
raise ScriptError("IPA is not configured on this system.",
|
||||||
rval=SERVER_NOT_CONFIGURED)
|
rval=SERVER_NOT_CONFIGURED)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from ipaplatform.paths import paths
|
|||||||
from ipapython.admintool import AdminTool
|
from ipapython.admintool import AdminTool
|
||||||
from ipapython.directivesetter import DirectiveSetter
|
from ipapython.directivesetter import DirectiveSetter
|
||||||
from ipaserver.install import cainstance
|
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.
|
# Manages the FreeIPA ACME service on a per-server basis.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user