mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-26 07:22:27 +00:00
修改推送默认端口bug
This commit is contained in:
@@ -64,7 +64,6 @@ def get_asset_info(asset):
|
||||
info = {'hostname': asset.hostname, 'ip': asset.ip}
|
||||
if asset.use_default_auth:
|
||||
if default:
|
||||
info['port'] = int(default.field2)
|
||||
info['username'] = default.field1
|
||||
try:
|
||||
info['password'] = CRYPTOR.decrypt(default.field3)
|
||||
@@ -73,10 +72,11 @@ def get_asset_info(asset):
|
||||
if os.path.isfile(default.field4):
|
||||
info['ssh_key'] = default.field4
|
||||
else:
|
||||
info['port'] = int(asset.port)
|
||||
info['username'] = asset.username
|
||||
info['password'] = CRYPTOR.decrypt(asset.password)
|
||||
|
||||
info['port'] = int(asset.port)
|
||||
|
||||
return info
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user