From 0c1f717fb2449ff91aa43a273292e52ff4c80a42 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 3 Nov 2020 13:31:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(assets):=20=E6=8E=A8=E9=80=81=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=94=A8=E6=88=B7=E5=A2=9E=E5=8A=A0comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/tasks/push_system_user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/assets/tasks/push_system_user.py b/apps/assets/tasks/push_system_user.py index efb86d892..719f6b278 100644 --- a/apps/assets/tasks/push_system_user.py +++ b/apps/assets/tasks/push_system_user.py @@ -36,6 +36,7 @@ def get_push_unixlike_system_user_tasks(system_user, username=None): username = system_user.username password = system_user.password public_key = system_user.public_key + comment = system_user.name groups = _split_by_comma(system_user.system_groups) @@ -47,7 +48,8 @@ def get_push_unixlike_system_user_tasks(system_user, username=None): 'shell': system_user.shell or Empty, 'state': 'present', 'home': system_user.home or Empty, - 'groups': groups or Empty + 'groups': groups or Empty, + 'comment': comment } tasks = [