URL: https://github.com/freeipa/freeipa/pull/1951
Author: amitkumar50
 Title: #1951: Cosmetic changes for ipa pwpolicy command
Action: opened

PR body:
"""
If you try to change the value of the password policy to the
same value as it already has then you will get an error:

ipa: ERROR: no modifications to be performed.

PR changes this error message to:
ipa: ERROR: Stored value is same as provided

https://pagure.io/freeipa/issue/362
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1951/head:pr1951
git checkout pr1951
From affd469019b099c6b8016ee8a63e9c02fed5af4e Mon Sep 17 00:00:00 2001
From: amitkumar50 <amitk...@redhat.com>
Date: Tue, 22 May 2018 12:32:51 +0530
Subject: [PATCH] Cosmetic changes for ipa pwpolicy command

If you try to change the value of the password policy to the
same value as it already has then you will get an error:

ipa: ERROR: no modifications to be performed.

PR changes this error message to:
ipa: ERROR: Stored value is same as provided

https://pagure.io/freeipa/issue/362
---
 ipalib/errors.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipalib/errors.py b/ipalib/errors.py
index 3a40fa28dc..23cb71ff6c 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -1519,11 +1519,11 @@ class EmptyModlist(ExecutionError):
     >>> raise EmptyModlist()
     Traceback (most recent call last):
       ...
-    EmptyModlist: no modifications to be performed
+    EmptyModlist: Stored value is same as provided
     """
 
     errno = 4202
-    format = _('no modifications to be performed')
+    format = _('Stored value is same as provided')
 
 
 class DatabaseError(ExecutionError):
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/freeipa-devel@lists.fedorahosted.org/message/RP5VTQWI7DNX7LTL7YGWGD4TP4KZK7LX/

Reply via email to