summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-08-23 13:06:52 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-08-27 17:01:37 +0200
commite68bef0b1ce3786f896689975c78ffc61f4db970 (patch)
tree75060661babff81ee7b8b8793ca291f050316c0a /ipalib/plugins
parent1749cce3f7fd5874a32102c4d0e2c45964e9cf15 (diff)
downloadfreeipa-e68bef0b1ce3786f896689975c78ffc61f4db970.tar.gz
freeipa-e68bef0b1ce3786f896689975c78ffc61f4db970.tar.xz
freeipa-e68bef0b1ce3786f896689975c78ffc61f4db970.zip
Fix incorrect error message occurence when re-adding the trust
You cannot re-add the trust and modify the range in the process. The check in the code was malfunctioning since it assumed that range_size parameter has default value. However, default value is assigned only later in the add_range function. https://fedorahosted.org/freeipa/ticket/3870
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/trust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py
index 6c7ea560e..d2348c8e4 100644
--- a/ipalib/plugins/trust.py
+++ b/ipalib/plugins/trust.py
@@ -423,7 +423,7 @@ sides.
))
base_id = options.get('base_id')
- range_size = options.get('range_size') != DEFAULT_RANGE_SIZE
+ range_size = options.get('range_size')
if old_range and (base_id or range_size):
raise errors.ValidationError(