diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-03-08 14:34:28 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-03-08 14:34:28 -0500 |
commit | f4802888222e447eca4163370dd81bbccc6c7286 (patch) | |
tree | 41defef9faf17870e804dba0ab0b2194899d1bdf /src/lib/Bcfg2/Server/Lint/RequiredAttrs.py | |
parent | 123ebaf46cb837a861bf5cd6a8b9125b4b167b11 (diff) | |
download | bcfg2-f4802888222e447eca4163370dd81bbccc6c7286.tar.gz bcfg2-f4802888222e447eca4163370dd81bbccc6c7286.tar.bz2 bcfg2-f4802888222e447eca4163370dd81bbccc6c7286.zip |
bcfg2-lint: allow uppercase in usernames
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/RequiredAttrs.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/RequiredAttrs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/RequiredAttrs.py b/src/lib/Bcfg2/Server/Lint/RequiredAttrs.py index 33565b4ad..2a10da417 100644 --- a/src/lib/Bcfg2/Server/Lint/RequiredAttrs.py +++ b/src/lib/Bcfg2/Server/Lint/RequiredAttrs.py @@ -43,7 +43,7 @@ def is_octal_mode(val): def is_username(val): """ Return True if val is a string giving either a positive integer uid, or a valid Unix username """ - return re.match(r'^([a-z][-_a-z0-9]{0,30}|\d+)$', val) + return re.match(r'^([A-z][-_A-z0-9]{0,30}|\d+)$', val) def is_device_mode(val): |