ipatests: collect log after ipa-ca-install

Make sure logs are collected after calling ipa-ca-install command.

Related: https://pagure.io/freeipa/issue/7060

Signed-off-by: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Tomas Krizek
2017-08-31 12:37:46 +02:00
parent 8c2dbece59
commit 4028f1aebb

View File

@@ -1176,7 +1176,9 @@ def install_ca(host, domain_level=None, first_instance=False, raiseonerr=True):
if domain_level == DOMAIN_LEVEL_0 and not first_instance:
replica_file = get_replica_filename(host)
command.append(replica_file)
return host.run_command(command, raiseonerr=raiseonerr)
result = host.run_command(command, raiseonerr=raiseonerr)
setup_server_logs_collecting(host)
return result
def install_dns(host, raiseonerr=True):