You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/03/14 18:57:53 UTC
[16/29] git commit: refs/heads/master - Fix typo
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/master
Commit: f48775699905a7373693e386ae095bbead208dd7
Parents: f6d9190
Author: Brian Federle <br...@citrix.com>
Authored: Thu Mar 7 16:21:46 2013 -0800
Committer: Brian Federle <br...@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
- } ;
+ };
})
});
}