From 5457fb7f7efef368b4e6db44f644b909d14c3f44 Mon Sep 17 00:00:00 2001 From: Francisco Trivino Date: Tue, 24 May 2022 09:27:22 +0200 Subject: [PATCH] Update ipa-replica-install replication agreement error message So that it prints out a valid command: - replace "ipa-replica-manage del" by "ipa server-del" (only domain-level1 is now supported) - the commands needs to be run on a working server, not on the host where ipa-replica-install failed Fixes: https://pagure.io/freeipa/issue/9162 Reviewed-By: Michal Polovka --- ipaserver/install/server/replicainstall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 8b79a79a0..68cd18eef 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -1023,8 +1023,8 @@ def promote_check(installer): if replman.get_replication_agreement(config.host_name): msg = ("A replication agreement for this host already exists. " "It needs to be removed.\n" - "Run this command:\n" - " %% ipa-replica-manage del {host} --force" + "Run this command on any working server:\n" + " %% ipa server-del {host} --force" .format(host=config.host_name)) raise ScriptError(msg, rval=3)