|
|
|
@ -33,16 +33,17 @@ def _dump_args(args: dict):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_push_unixlike_system_user_tasks(system_user, username=None, **kwargs):
|
|
|
|
|
comment = system_user.name
|
|
|
|
|
algorithm = kwargs.get('algorithm')
|
|
|
|
|
if username is None:
|
|
|
|
|
username = system_user.username
|
|
|
|
|
|
|
|
|
|
comment = system_user.name
|
|
|
|
|
if system_user.username_same_with_user:
|
|
|
|
|
from users.models import User
|
|
|
|
|
user = User.objects.filter(username=username).only('name', 'username').first()
|
|
|
|
|
if user:
|
|
|
|
|
comment = f'{system_user.name}[{str(user)}]'
|
|
|
|
|
comment = comment.replace(' ', '')
|
|
|
|
|
|
|
|
|
|
password = system_user.password
|
|
|
|
|
public_key = system_user.public_key
|
|
|
|
|