Merge pull request #55 from houhoucoop/fix/issue-7183

fix: failed to create vm template on Rancher managed Harvester
This commit is contained in:
Yiya Chen 2025-01-02 12:43:33 +08:00 committed by GitHub
commit 687943ae92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ import SSHKey from './kubevirt.io.virtualmachine/VirtualMachineSSHKey';
export default { export default {
name: 'HarvesterEditVMTemplate', name: 'HarvesterEditVMTemplate',
emits: ['update:value'], emits: ['update:templateValue'],
components: { components: {
Tab, Tab,
@ -205,7 +205,7 @@ export default {
if (tab.name === 'advanced') { if (tab.name === 'advanced') {
this.$refs.yamlEditor?.refresh(); this.$refs.yamlEditor?.refresh();
} }
} },
}, },
}; };
</script> </script>
@ -222,11 +222,11 @@ export default {
@finish="saveVMT" @finish="saveVMT"
> >
<NameNsDescription <NameNsDescription
:value="value" :value="templateValue"
:mode="realTemplateMode" :mode="realTemplateMode"
name-label="harvester.vmTemplate.nameNsDescription.name" name-label="harvester.vmTemplate.nameNsDescription.name"
:namespaced="true" :namespaced="true"
@update:value="$emit('update:value', $event)" @update:value="$emit('update:templateValue', $event)"
/> />
<Checkbox <Checkbox