Skip to content

Commit e4839e9

Browse files
authored
Merge branch 'ablecloud-team:ablestack-diplo' into mold-main#2025
2 parents 72b26c4 + 6130bf5 commit e4839e9

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4461,6 +4461,7 @@
44614461
"physical.nvpcontroller.configure": "PHYSICAL.NVPCONTROLLER.CONFIGURE",
44624462
"physical.ovscontroller.add": "PHYSICAL.OVSCONTROLLER.ADD",
44634463
"physical.ovscontroller.delete": "PHYSICAL.OVSCONTROLLER.DELETE",
4464+
"cluster.drs.generate": "CLUSTER.DRS.GENERATE",
44644465
"counter.create": "COUNTER.CREATE",
44654466
"counter.delete": "COUNTER.DELETE",
44664467
"condition.create": "CONDITION.CREATE",

ui/public/locales/ko_KR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4461,6 +4461,7 @@
44614461
"physical.nvpcontroller.configure": "\ubb3c\ub9ac.NVP\ucee8\ud2b8\ub864\ub7ec.\uad6c\uc131",
44624462
"physical.ovscontroller.add": "\ubb3c\ub9ac.OVS\ucee8\ud2b8\ub864\ub7ec.\ucd94\uac00",
44634463
"physical.ovscontroller.delete": "\ubb3c\ub9ac.OVSC\ucee8\ud2b8\ub864\ub7ec.\uc0ad\uc81c",
4464+
"cluster.drs.generate": "\ud074\ub7ec\uc2a4\ud130.DRS.\uc0dd\uc131",
44644465
"counter.create": "\uce74\uc6b4\ud130.\uc0dd\uc131",
44654466
"counter.delete": "\uce74\uc6b4\ud130.\uc0ad\uc81c",
44664467
"condition.create": "\uc870\uac74.\uc0dd\uc131",

ui/src/views/infra/zone/ZoneWizardNetworkSetupStep.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
/>
102102

103103
<div v-if="guestTrafficRangeMode">
104-
<div>{{ isNsxZone }}</div>
105104
<static-inputs-form
106105
v-if="steps && steps[currentStep].formKey === 'guestTraffic'"
107106
@nextPressed="nextPressed"

ui/src/views/storage/HostDevicesTransfer.vue

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,29 @@ export default {
9898
}
9999
100100
this.loading = true
101-
102101
const vmId = this.form.virtualmachineid
103102
const hostDevicesName = this.resource.hostDevicesName
104103
105-
const xmlConfig = this.generateXmlConfig(hostDevicesName)
104+
api('listVirtualMachines', {
105+
id: vmId,
106+
details: 'min'
107+
}).then(response => {
108+
const vm = response.listvirtualmachinesresponse.virtualmachine[0]
109+
const details = vm.details || {}
110+
111+
const xmlConfig = this.generateXmlConfig(hostDevicesName)
106112
107-
const apiName = 'updateVirtualMachine'
113+
const params = { id: vmId }
108114
109-
if (!(apiName in this.$store.getters.apis)) {
110-
this.$message.error({
111-
message: this.$t('error.execute.api.failed') + ' ' + apiName,
112-
description: this.$t('message.user.not.permitted.api')
115+
// 기존 details 값을 유지하면서 새로운 값 추가
116+
Object.keys(details).forEach(key => {
117+
params[`details[0].${key}`] = details[key]
113118
})
114-
this.loading = false
115-
return
116-
}
117119
118-
api(apiName, {
119-
id: vmId,
120-
'details[0].extraconfig-1': xmlConfig
120+
// 필요한 추가 값 동적으로 설정
121+
params[`details[0].extraconfig-1`] = xmlConfig
122+
123+
return api('updateVirtualMachine', params)
121124
}).then(() => {
122125
this.$message.success(this.$t('message.success.update.vm'))
123126
this.closeAction()
@@ -142,7 +145,7 @@ export default {
142145
</source>
143146
</hostdev>
144147
</devices>
145-
`
148+
`.trim()
146149
},
147150
148151
closeAction () {

0 commit comments

Comments
 (0)