summaryrefslogtreecommitdiffstats
path: root/ipalib
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:02:20 +0200
commitb3424ed8b5bf55b81b316e3d1c7d195e3bb814a8 (patch)
tree10fba0c47f5a10a9b8ccb42b6313dee5913091e1 /ipalib
parentb0b25a27cf77c0b9b2aaffaceccb83fd1bfd6b54 (diff)
downloadfreeipa.git-b3424ed8b5bf55b81b316e3d1c7d195e3bb814a8.tar.gz
freeipa.git-b3424ed8b5bf55b81b316e3d1c7d195e3bb814a8.tar.xz
freeipa.git-b3424ed8b5bf55b81b316e3d1c7d195e3bb814a8.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')
-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 6c7ea560..d2348c8e 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(