Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update: eip disassosiate

  • Loading branch information...
commit 53bb9f088ea3fd65d02e019652dac62a6c3b9ba0 1 parent a91930a
@winebarrel winebarrel authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 ec2ui/content/ec2ui/eipview.js
View
5 ec2ui/content/ec2ui/eipview.js
@@ -116,8 +116,7 @@ var ec2ui_ElasticIPTreeView = {
if (eipSel == null) return;
var fAssociated = true;
- if (eipSel.instanceid == null ||
- eipSel.instanceid == "") {
+ if (!eipSel.instanceid && !eipSel.associationId) {
// There is no instance associated with this address
fAssociated = false;
}
@@ -328,7 +327,7 @@ var ec2ui_ElasticIPTreeView = {
disassociateAddress : function() {
var eip = this.getSelectedEip();
if (eip == null) return;
- if (eip.instanceid == null || eip.instanceid == '') return;
+ if (!eip.instanceid && !eip.associationId) return;
var confirmed = confirm("Disassociate "+eip.address+" and instance "+eip.instanceid+"?");
if (!confirmed)
Please sign in to comment.
Something went wrong with that request. Please try again.