diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-08-01 16:41:28 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-08-18 20:35:12 -0400 |
commit | d28f1c3b7cca50166444c7110e914f1efd4f779a (patch) | |
tree | 4ff6abc1f2a7155220a9c5c9d93ea33542393622 /ipalib/crud.py | |
parent | 1ec531469ee0cf91ed9e150307d93e5ab12aa2a6 (diff) | |
download | freeipa-d28f1c3b7cca50166444c7110e914f1efd4f779a.tar.gz freeipa-d28f1c3b7cca50166444c7110e914f1efd4f779a.tar.xz freeipa-d28f1c3b7cca50166444c7110e914f1efd4f779a.zip |
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
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r-- | ipalib/crud.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |