From 6c393e53b01222ba7629ce86384d0adb34f7f275 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 2 Dec 2010 16:29:26 -0500 Subject: This is the second half of a patch. Only the part that had to be re-based got pushed for some reason. Use better description for group names in help and always prompt for members When running -[add|remove]-member completely interactively it didn't prompt for managing membership, it just reported that 0 members were handled which was rather confusing. This will work via a shell if you want to echo too: $ echo "" | ipa group-add-member g1 This returns 0 members because nothing is read for users or group members. $ echo -e "g1\nadmin\n" | ipa group-add-member This adds the user admin to the group g1. It adds it as a user because user membership is prompted for first. ticket 415 --- ipalib/parameters.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/parameters.py') diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 7543e15f2..cf4f3ba45 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -315,6 +315,7 @@ class Param(ReadOnly): ('exclude', frozenset, None), ('flags', frozenset, frozenset()), ('hint', (str, Gettext), None), + ('alwaysask', bool, False), # The 'default' kwarg gets appended in Param.__init__(): # ('default', self.type, None), -- cgit