From e68bef0b1ce3786f896689975c78ffc61f4db970 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 23 Aug 2013 13:06:52 +0200 Subject: 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 --- ipalib/plugins/trust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins') 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( -- cgit