mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
upgrade: do not overshadow service module in upgrade_configuration
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
b7c00f2a1f
commit
fccceaa2d9
@ -1732,12 +1732,12 @@ def upgrade_configuration():
|
||||
(otpdinstance.OtpdInstance(), 'OTPD'),
|
||||
)
|
||||
|
||||
for service, ldap_name in simple_service_list:
|
||||
for svc, ldap_name in simple_service_list:
|
||||
try:
|
||||
if not service.is_configured():
|
||||
service.create_instance(ldap_name, fqdn,
|
||||
ipautil.realm_to_suffix(api.env.realm),
|
||||
realm=api.env.realm)
|
||||
if not svc.is_configured():
|
||||
svc.create_instance(ldap_name, fqdn,
|
||||
ipautil.realm_to_suffix(api.env.realm),
|
||||
realm=api.env.realm)
|
||||
except ipalib.errors.DuplicateEntry:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user