Skip to content

Commit 0f4b1f5

Browse files
committed
Merge remote-tracking branch 'origin/4.12'
2 parents c072dda + 7ef921d commit 0f4b1f5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ui/scripts/network.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
url: createURL('listNics'),
9292
data: {
9393
virtualmachineid: instance.id,
94-
networkId: network.id
94+
networkid: (args.context.networkid != undefined) ? args.context.networkid : network.id
9595
},
9696
success: function(json) {
9797
var nic = json.listnicsresponse.nic[0];
@@ -2465,6 +2465,10 @@
24652465
networkid: $tierSelect.val(),
24662466
vpcid: args.context.vpc[0].id
24672467
});
2468+
$.extend(args.context, {
2469+
networkid: $tierSelect.val(),
2470+
vpcid: args.context.vpc[0].id
2471+
});
24682472
} else if ('networks' in args.context && !args.context.ipAddresses[0].isportable) {
24692473
$.extend(data, {
24702474
networkid: args.context.networks[0].id

ui/scripts/vpc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
url: createURL('listNics'),
9191
data: {
9292
virtualmachineid: instance.id,
93-
nicId: instance.nic[0].id
93+
networkId: network.id
9494
},
9595
success: function(json) {
9696
var nic = json.listnicsresponse.nic[0];

0 commit comments

Comments
 (0)