Skip to content

Commit 590877d

Browse files
zhangjing2zhangjing57
zhangjing2
authored andcommitted
[fix][node] modify code for scale node with baremetal cluster
1 parent 35a6b49 commit 590877d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dingo_command/services/instance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ def create_baremetal(self, cluster_info, cluster: ScaleNodeObject, token):
382382
tfvars.password = cluster.node_config[0].password
383383
elif cluster.node_config[0].auth_type == "keypair":
384384
tfvars.password = ""
385+
else:
386+
tfvars.password = ""
385387
# 调用celery_app项目下的work.py中的create_cluster方法
386388
result = celery_app.send_task("dingo_command.celery_api.workers.create_cluster",
387389
args=[tfvars.dict(), cluster_info.dict(), instance_list])

0 commit comments

Comments
 (0)