From 15669372db69407605ee0fcdff5691f5167fac3d Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 19 Nov 2019 18:31:48 +0100 Subject: [PATCH] add GroupnameOption --- tiramisu/option/usernameoption.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tiramisu/option/usernameoption.py b/tiramisu/option/usernameoption.py index 4da7d97..02e98c8 100644 --- a/tiramisu/option/usernameoption.py +++ b/tiramisu/option/usernameoption.py @@ -29,4 +29,10 @@ class UsernameOption(RegexpOption): #regexp build with 'man 8 adduser' informations _regexp = re.compile(r"^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$") _type = 'username' - _display_name = _('username') + _display_name = _('unix username') + + +class GroupnameOption(UsernameOption): + __slots__ = tuple() + _type = 'groupname' + _display_name = _('unix groupname')