Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fix

  • Loading branch information...
commit d14a0137fa593492cfb4e502c1796179fdd6554e 1 parent ff89457
@winebarrel winebarrel authored
Showing with 13 additions and 4 deletions.
  1. +13 −4 ec2ui/content/ec2ui/eniview.js
View
17 ec2ui/content/ec2ui/eniview.js
@@ -315,12 +315,21 @@ var ec2ui_ENITreeView = {
}
}
- if (unassigns.length > 0) {
- ec2ui_session.controller.unassignPrivateIpAddresses(eni_id, unassigns);
+ var me = this;
+
+ var assignFunc = function() {
+ if (assigns.length > 0) {
+ ec2ui_session.controller.assignPrivateIpAddresses(eni_id, assigns, reassign);
+ }
+
+ me.refresh();
+ me.selectByNetworkInterfaceId(eni_id);
}
- if (assigns.length > 0) {
- ec2ui_session.controller.assignPrivateIpAddresses(eni_id, assigns, reassign);
+ if (unassigns.length > 0) {
+ ec2ui_session.controller.unassignPrivateIpAddresses(eni_id, unassigns, assignFunc);
+ } else {
+ assignFunc();
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.