cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: refs/heads/ui-multiple-nics - Fix typo
Date Fri, 08 Mar 2013 00:22:02 GMT
Updated Branches:
  refs/heads/ui-multiple-nics be8e427ef -> f48775699


Fix typo


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f4877569
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f4877569
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f4877569

Branch: refs/heads/ui-multiple-nics
Commit: f48775699905a7373693e386ae095bbead208dd7
Parents: f6d9190
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Mar 7 16:21:46 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Thu Mar 7 16:21:46 2013 -0800

----------------------------------------------------------------------
 ui/scripts/network.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f4877569/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index cec7a64..94ff432 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -39,8 +39,8 @@
     var instance = args.context.instances[0];
     var network = args.context.networks[0];
     var nic = $.grep(instance.nic, function(nic) {
-      return nic.networkid = network.id;
-    })[0]
+      return nic.networkid == network.id;
+    })[0];
 
     // Get NIC IPs
     $.ajax({
@@ -51,14 +51,14 @@
       },
       success: function(json) {
         var nic = json.listnics.nic[0];
-        var ips = nic.secondaryip ? nic.secondaryip : [];
+        var ips = nic.secondaryip ? targetNic.secondaryip : [];
 
         args.response.success({
           data: $(ips).map(function(index, ip) {
             return {
               id: ip.ipaddress,
               description: ip.ipaddress
-            } ;
+            };
           })
         });
       }


Mime
View raw message