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 06:23:18 -03:00 committed by GitHub
parent 6ddd35d661
commit 3b343bcaca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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() {