diff options
Diffstat (limited to 'ipalib/base.py')
-rw-r--r-- | ipalib/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/base.py b/ipalib/base.py index 38b1e8f32..bc2c6b45a 100644 --- a/ipalib/base.py +++ b/ipalib/base.py @@ -216,7 +216,7 @@ def check_name(name): >>> check_name('MyName') Traceback (most recent call last): ... - ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$'; got 'MyName' + ValueError: name must match '^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'; got 'MyName' Also, this function will raise a ``TypeError`` if ``name`` is not an ``str`` instance. For example: |