From d28f1c3b7cca50166444c7110e914f1efd4f779a Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 1 Aug 2011 16:41:28 +0200 Subject: Fix automountkey-mod Fix automountkey-mod so that automountkey attribute is correctly updated. Add this test case to the unit tests. Make automountkey required for automountkey-mod, otherwise it would cause internal server error. Make --newinfo optional so that automountkey may be just renamed without changing its info attribute. https://fedorahosted.org/freeipa/ticket/1528 --- ipalib/crud.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipalib/crud.py') diff --git a/ipalib/crud.py b/ipalib/crud.py index b7a665361..97d6430d7 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -190,6 +190,10 @@ class Update(PKQuery): attribute=True, query=True, required=False, autofill=False, alwaysask=True ) + elif 'req_update' in option.flags: + yield option.clone( + attribute=True, required=True, alwaysask=False, + ) else: yield option.clone(attribute=True, required=False, autofill=False) if not self.extra_options_first: -- cgit