From af93c3754ac60d5bda94d671cb8e1b2b9cd517c4 Mon Sep 17 00:00:00 2001 From: zhangjing2 Date: Tue, 3 Jun 2025 20:13:52 +0800 Subject: [PATCH] [fix][node] modify code for scale node with baremetal cluster --- dingo_command/services/instance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dingo_command/services/instance.py b/dingo_command/services/instance.py index bcf9f593..fdc1db3c 100644 --- a/dingo_command/services/instance.py +++ b/dingo_command/services/instance.py @@ -382,6 +382,8 @@ def create_baremetal(self, cluster_info, cluster: ScaleNodeObject, token): tfvars.password = cluster.node_config[0].password elif cluster.node_config[0].auth_type == "keypair": tfvars.password = "" + else: + tfvars.password = "" # 调用celery_app项目下的work.py中的create_cluster方法 result = celery_app.send_task("dingo_command.celery_api.workers.create_cluster", args=[tfvars.dict(), cluster_info.dict(), instance_list])