diff options
author | David Kupka <dkupka@redhat.com> | 2014-11-05 02:40:10 -0500 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2014-11-13 13:07:22 +0000 |
commit | b032debd233c70541e52d3ee677cb82f9840b291 (patch) | |
tree | 659c59cf080023bbb2d39152feb5167337db9afa /ipalib | |
parent | e28eb13907053ca9d49e4bf66cb32820f1a2ef1d (diff) | |
download | freeipa-b032debd233c70541e52d3ee677cb82f9840b291.tar.gz freeipa-b032debd233c70541e52d3ee677cb82f9840b291.tar.xz freeipa-b032debd233c70541e52d3ee677cb82f9840b291.zip |
Produce better error in group-add command.
https://fedorahosted.org/freeipa/ticket/4611
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/group.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 03e6893e3..d25ed9a19 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -287,7 +287,7 @@ class group_add(LDAPCreate): if options['external']: entry_attrs['objectclass'].append('ipaexternalgroup') if 'gidnumber' in options: - raise errors.RequirementError(name='gid') + raise errors.MutuallyExclusiveError(reason=_('gid cannot be set for external group')) elif not options['nonposix']: entry_attrs['objectclass'].append('posixgroup') if not 'gidnumber' in options: |