mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 18:01:23 -06:00
Fix CI tests: install_adtrust
IPA uses both named and named-pkcs11 service. If named is masked use named-pkcs11, instead of raising exception Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
parent
7eca640ffa
commit
e7edac30a1
@ -278,7 +278,15 @@ def install_adtrust(host):
|
||||
|
||||
# Restart named because it lost connection to dirsrv
|
||||
# (Directory server restarts during the ipa-adtrust-install)
|
||||
host.run_command(['systemctl', 'restart', 'named'])
|
||||
# we use two services named and named-pkcs11,
|
||||
# if named is masked restart named-pkcs11
|
||||
result = host.run_command(['systemctl', 'is-enabled', 'named'],
|
||||
raiseonerr=False)
|
||||
if result.stdout_text.startswith("masked"):
|
||||
host.run_command(['systemctl', 'restart', 'named-pkcs11'])
|
||||
else:
|
||||
host.run_command(['systemctl', 'restart', 'named'])
|
||||
|
||||
|
||||
# Check that named is running and has loaded the information from LDAP
|
||||
dig_command = ['dig', 'SRV', '+short', '@localhost',
|
||||
|
Loading…
Reference in New Issue
Block a user