pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0031-replication-Fix-incorrect-exception-invocation.patch

590d18
From e3925cac13a3daca4880e789a139bad265c21798 Mon Sep 17 00:00:00 2001
590d18
From: Tomas Babej <tbabej@redhat.com>
590d18
Date: Fri, 24 Jul 2015 11:26:33 +0200
590d18
Subject: [PATCH] replication: Fix incorrect exception invocation
590d18
590d18
Reviewed-By: Tomas Babej <tbabej@redhat.com>
590d18
---
590d18
 ipaserver/install/replication.py | 2 +-
590d18
 1 file changed, 1 insertion(+), 1 deletion(-)
590d18
590d18
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
590d18
index e9af88dc4356d4fd5495f4fea399ab09c75db953..2b36a5eb9287bf1789009a3198e540e333869e98 100644
590d18
--- a/ipaserver/install/replication.py
590d18
+++ b/ipaserver/install/replication.py
590d18
@@ -1171,7 +1171,7 @@ class ReplicationManager(object):
590d18
         entry = self.get_replication_agreement(hostname)
590d18
         if not entry:
590d18
             raise errors.NotFound(
590d18
-                "Replication agreement for %s not found" % hostname)
590d18
+                reason="Replication agreement for %s not found" % hostname)
590d18
         objectclass = entry.get("objectclass")
590d18
 
590d18
         for o in objectclass:
590d18
-- 
590d18
2.4.3
590d18