Unverified Commit d042de7b authored by Jiangjie.Bai's avatar Jiangjie.Bai Committed by GitHub
Browse files

Merge pull request #5972 from jumpserver/dev

v2.9.0 发版
Showing with 3 additions and 0 deletions
+3 -0
......@@ -42,7 +42,9 @@ def change_key0_to_key1(apps, schema_editor):
key_list = n.key.split(':')
key_list[0] = '1'
new_key = ':'.join(key_list)
new_parent_key = ':'.join(key_list[:-1])
n.key = new_key
n.parent_key = new_parent_key
n.save()
print('--> Modify key ( {} > {} )'.format(old_key, new_key))
......
......@@ -57,6 +57,7 @@ def get_push_unixlike_system_user_tasks(system_user, username=None):
'state': 'present',
'home': system_user.home or Empty,
'groups': groups or Empty,
'expires': 99999,
'comment': comment
}
......
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