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