diff options
Diffstat (limited to 'ipalib/config.py')
-rw-r--r-- | ipalib/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/config.py b/ipalib/config.py index 5eef03b0..5311f990 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 |