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
This commit is contained in:
Martin Kosek
2011-08-18 20:35:12 -04:00
committed by Rob Crittenden
parent 1ec531469e
commit d28f1c3b7c
4 changed files with 49 additions and 23 deletions
+4
View File
@@ -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: