fix: create new secret on vm creation (#537)

Signed-off-by: Caio Torres <caio.torres@suse.com>
This commit is contained in:
Caio Torres
2025-10-07 17:23:18 +08:00
committed by GitHub
parent 6ddd35d661
commit 3b343bcaca
+1 -1
View File
@@ -273,7 +273,7 @@ export default {
needNewSecret() {
// When creating a template it is always necessary to create a new secret.
return this.showYaml ? false : this.resourceType === HCI.VM_VERSION || this.isCreate;
return this.isCreate ? true : this.showYaml ? false : this.resourceType === HCI.VM_VERSION;
},
defaultTerminationSetting() {