replication: Fix incorrect exception invocation

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Tomas Babej 2015-07-24 11:26:33 +02:00
parent aa066f31a5
commit 5df48d74a0

View File

@ -1171,7 +1171,7 @@ class ReplicationManager(object):
entry = self.get_replication_agreement(hostname)
if not entry:
raise errors.NotFound(
"Replication agreement for %s not found" % hostname)
reason="Replication agreement for %s not found" % hostname)
objectclass = entry.get("objectclass")
for o in objectclass: