mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI bug fix: 'Invalid ip address' when change vm ip address (#5744)
This commit is contained in:
parent
14d09a9fab
commit
46fa7f473d
@ -586,10 +586,13 @@ export default {
|
||||
if (this.loadingNic) return
|
||||
this.loadingNic = true
|
||||
this.showUpdateIpModal = false
|
||||
api('updateVmNicIp', {
|
||||
nicId: this.editIpAddressNic,
|
||||
ipaddress: this.editIpAddressValue
|
||||
}).then(response => {
|
||||
const params = {
|
||||
nicId: this.editIpAddressNic
|
||||
}
|
||||
if (this.editIpAddressValue) {
|
||||
params.ipaddress = this.editIpAddressValue
|
||||
}
|
||||
api('updateVmNicIp', params).then(response => {
|
||||
this.$pollJob({
|
||||
jobId: response.updatevmnicipresponse.jobid,
|
||||
successMessage: this.$t('message.success.update.ipaddress'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user