diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 9333f6714..0f420106e 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -1169,6 +1169,9 @@ class ReplicationManager(object): def get_agreement_type(self, hostname): entry = self.get_replication_agreement(hostname) + if not entry: + raise errors.NotFound( + "Replication agreement for %s not found" % hostname) objectclass = entry.get("objectclass") for o in objectclass: