mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
perf: 优化自定义改密时需要在命令中包含ssh登录用户的密码问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
96eb87f935
commit
2ba32f6971
@@ -72,9 +72,10 @@ def get_commands(module):
|
||||
username = module.params['name']
|
||||
password = module.params['password']
|
||||
commands = module.params['commands'] or []
|
||||
login_password = module.params['login_password']
|
||||
for index, command in enumerate(commands):
|
||||
commands[index] = command.format(
|
||||
username=username, password=password
|
||||
username=username, password=password, login_password=login_password
|
||||
)
|
||||
return commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user