diff options
author | Ondrej Hamada <ohamada@redhat.com> | 2012-05-04 10:25:42 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-05-07 08:35:11 +0200 |
commit | 343aba2486e4b2a406e6f023c2a0a2c24841796f (patch) | |
tree | 36da32dade75268889075120160338c5b557d5a3 /ipalib/plugins/netgroup.py | |
parent | 85185a89dbd62fdb0295f404e60152a68c790ef8 (diff) | |
download | freeipa-343aba2486e4b2a406e6f023c2a0a2c24841796f.tar.gz freeipa-343aba2486e4b2a406e6f023c2a0a2c24841796f.tar.xz freeipa-343aba2486e4b2a406e6f023c2a0a2c24841796f.zip |
Allow one letter net/hostgroups names
Changed regex validating net/hostgroup names to allow single letter
names. Unit-tests added.
https://fedorahosted.org/freeipa/ticket/2671
Diffstat (limited to 'ipalib/plugins/netgroup.py')
-rw-r--r-- | ipalib/plugins/netgroup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/netgroup.py b/ipalib/plugins/netgroup.py index 693c00c1a..d2a780980 100644 --- a/ipalib/plugins/netgroup.py +++ b/ipalib/plugins/netgroup.py @@ -50,7 +50,7 @@ EXAMPLES: """) -NETGROUP_PATTERN='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$' +NETGROUP_PATTERN='^[a-zA-Z0-9_.][a-zA-Z0-9_.-]*$' NETGROUP_PATTERN_ERRMSG='may only include letters, numbers, _, -, and .' # according to most common use cases the netgroup pattern should fit |