URL: https://github.com/freeipa/freeipa/pull/282
Author: stlaz
 Title: #282: replicainstall: give correct error message on DL mismatch
Action: opened

PR body:
"""
https://fedorahosted.org/freeipa/ticket/6510
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/282/head:pr282
git checkout pr282
From 88eef020e93b7f23c7de0a2f8a3bd3611395bf61 Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Tue, 29 Nov 2016 14:08:19 +0100
Subject: [PATCH] replicainstall: give correct error message on DL mismatch

https://fedorahosted.org/freeipa/ticket/6510
---
 ipaserver/install/server/replicainstall.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
index a7b333c..0f45bea 100644
--- a/ipaserver/install/server/replicainstall.py
+++ b/ipaserver/install/server/replicainstall.py
@@ -557,7 +557,7 @@ def check_domain_level(api, expected):
         # available
         current = constants.DOMAIN_LEVEL_0
 
-    if expected == constants.DOMAIN_LEVEL_0:
+    if current == constants.DOMAIN_LEVEL_0:
         message = (
             "You must provide a file generated by ipa-replica-prepare to "
             "create a replica when the domain is at level 0."
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to