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:24 -0400 |
commit | 6aa0b57440ee83ef771c23c5bf81a5edc26e2e67 (patch) | |
tree | 91bee492fc7783620584c8bf898b68fafce31a4f /ipalib/crud.py | |
parent | 704732630cbb466c00b0d49a88a016ed7f861c63 (diff) | |
download | freeipa-6aa0b57440ee83ef771c23c5bf81a5edc26e2e67.tar.gz freeipa-6aa0b57440ee83ef771c23c5bf81a5edc26e2e67.tar.xz freeipa-6aa0b57440ee83ef771c23c5bf81a5edc26e2e67.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: |