mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipaserver/install/adtrust.py: Do not use DOMAIN_LEVEL_0 for minimum
As there is the minimal domain level setting MIN_DOMAIN_LEVEL, it should be used instead of DOMAIN_LEVEL_0. See: https://pagure.io/freeipa/issue/7669 Signed-off-by: Thomas Woerner <twoerner@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
3b8c38ec8b
commit
c33cbe13fb
@ -13,7 +13,7 @@ import os
|
||||
|
||||
import six
|
||||
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
from ipalib.constants import MIN_DOMAIN_LEVEL
|
||||
from ipalib import errors
|
||||
from ipalib.install.service import ServiceAdminInstallInterface
|
||||
from ipalib.install.service import replica_install_only
|
||||
@ -258,7 +258,7 @@ def retrieve_potential_adtrust_agents(api):
|
||||
# because only these masters will have SSSD recent enough
|
||||
# to support AD trust agents
|
||||
dl_enabled_masters = api.Command.server_find(
|
||||
ipamindomainlevel=DOMAIN_LEVEL_0, all=True)['result']
|
||||
ipamindomainlevel=MIN_DOMAIN_LEVEL, all=True)['result']
|
||||
except (errors.DatabaseError, errors.NetworkError) as e:
|
||||
logger.error(
|
||||
"Could not retrieve a list of existing IPA masters: %s", e)
|
||||
|
Loading…
Reference in New Issue
Block a user