main #2
@ -1899,6 +1899,10 @@ def execute_jsite_task(instance_id, mode='deploy', command_content=None, **kwarg
|
||||
if not command_content:
|
||||
return {"success": False, "message": "缺少command_content参数"}
|
||||
|
||||
# 如果mode为deploy,开通3000/4000端口
|
||||
if mode == 'deploy':
|
||||
create_aliyun_firewall_rule(instance_id, 'TCP', '3000/4000', 'Jsite', region_id)
|
||||
|
||||
# 执行命令,不传入参数字典
|
||||
manager = _get_manager()
|
||||
result = manager.run_command(instance_id, command_content, parameters=None, command_name=mode, region_id=region_id, timeout=3600)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user