Ugh, this gotta go into an m18n.n to work...

This commit is contained in:
Alexandre Aubin 2020-03-28 14:51:19 +01:00
parent 0397aa91d9
commit a2b4e151e4

View file

@ -577,7 +577,7 @@ def user_group_create(operation_logger, groupname, gid=None, primary_group=False
all_existing_groupnames = {x.gr_name for x in grp.getgrall()}
if groupname in all_existing_groupnames:
if primary_group:
logger.warning('group_already_exist_on_system_but_removing_it', group=groupname)
logger.warning(m18n.n('group_already_exist_on_system_but_removing_it', group=groupname))
subprocess.check_call("sed --in-place '/^%s:/d' /etc/group" % groupname, shell=True)
else:
raise YunohostError('group_already_exist_on_system', group=groupname)