mirror of https://github.com/apache/cloudstack.git
VM multiple NICs: Fix broken UI due to API call changes
This commit is contained in:
parent
685a8a72ce
commit
d9d6d21b5c
|
|
@ -1186,7 +1186,7 @@
|
|||
virtualmachineid: args.context.instances[0].id
|
||||
},
|
||||
success: function(json) {
|
||||
var ips = json.listnics.nic ? json.listnics.nic[0].secondaryip : [];
|
||||
var ips = json.listnicsresponse.nic ? json.listnicsresponse.nic[0].secondaryip : [];
|
||||
|
||||
args.response.success({
|
||||
data: $(ips).map(function(index, ip) {
|
||||
|
|
@ -1252,7 +1252,7 @@
|
|||
virtualmachineid: args.context.instances[0].id
|
||||
},
|
||||
success: function(json) {
|
||||
var ips = json.listnics.nic[0].secondaryip
|
||||
var ips = json.listnicsresponse.nic[0].secondaryip
|
||||
|
||||
args.response.success({
|
||||
data: $.grep($(ips).map(function(index, ip) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue