summaryrefslogtreecommitdiffstats
path: root/ipalib/config.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-02-12 11:01:23 -0500
committerJason Gerard DeRose <jderose@redhat.com>2010-02-12 13:14:29 -0700
commit338578d10ac0978a00948971a17a89dc95435954 (patch)
treef26b50e0df86834906d40e5a15b96b5926c533bd /ipalib/config.py
parentb31f259b1a24b5da8a8ed80d27b1f925220e8f24 (diff)
downloadfreeipa-338578d10ac0978a00948971a17a89dc95435954.tar.gz
freeipa-338578d10ac0978a00948971a17a89dc95435954.tar.xz
freeipa-338578d10ac0978a00948971a17a89dc95435954.zip
Allow one-character Param names
This is done explicitly to support the l/localityname attribute.
Diffstat (limited to 'ipalib/config.py')
-rw-r--r--ipalib/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/config.py b/ipalib/config.py
index 5eef03b08..5311f9904 100644
--- a/ipalib/config.py
+++ b/ipalib/config.py
@@ -74,11 +74,11 @@ class Env(object):
>>> env.BadName = 'Wont work as an attribute'
Traceback (most recent call last):
...
- ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$'; got 'BadName'
+ ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'; got 'BadName'
>>> env['BadName'] = 'Also wont work as a dictionary item'
Traceback (most recent call last):
...
- ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$'; got 'BadName'
+ ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'; got 'BadName'
The variable values can be ``str``, ``int``, or ``float`` instances, or the
``True``, ``False``, or ``None`` constants. When the value provided is an