Commit bb17d477 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Fix MCommunity group alias creation.

parent 97125e76
......@@ -407,8 +407,12 @@ The password for your requested shared account is:
self.last_name
)
self.account = re.sub(r'[^\w_-]', '.', self.account).lower().strip()
self.group_alias = re.sub(r'[^\w_-]', '.', self.full_name).strip()
self.account = re.sub(r'[^\w-]', '.', self.account).lower().strip()
self.group_alias = re.sub(
r'[^\w-]',
' ',
self.full_name
).replace('_', ' ').strip()
self.email = '{}@{}'.format(
self.account,
self.config['google']['domain']
......@@ -449,7 +453,7 @@ def main():
parser.add_argument(
'--owners',
'-o',
help='Owners for the shared account',
help='Uniqname(s) of shared account owner(s)',
nargs='+'
)
parser.add_argument(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment