You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/08/08 19:37:00 UTC
[2/2] git commit: cloudstack 3.0 UI - autoscale - for regular user -
fix a bug that createAutoScaleVmProfile API fails because autoscaleuserid is
undefined.
cloudstack 3.0 UI - autoscale - for regular user - fix a bug that createAutoScaleVmProfile API fails because autoscaleuserid is undefined.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/16046e26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/16046e26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/16046e26
Branch: refs/heads/autoscale
Commit: 16046e261c1eb7d6ef243cd47bd89313c02a7877
Parents: 92ff9b0
Author: Jessica Wang <je...@citrix.com>
Authored: Tue Aug 7 13:20:52 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Wed Aug 8 10:35:17 2012 -0700
----------------------------------------------------------------------
ui/scripts/autoscaler.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/16046e26/ui/scripts/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js
index 860c8fe..8967d6a 100644
--- a/ui/scripts/autoscaler.js
+++ b/ui/scripts/autoscaler.js
@@ -1071,7 +1071,7 @@
array1.push("&destroyvmgraceperiod=" + args.data.destroyVMgracePeriod);
array1.push("&snmpcommunity=" + args.data.snmpCommunity);
array1.push("&snmpport=" + args.data.snmpPort);
- if(args.data.username != "")
+ if(args.data.username != null && args.data.username.length > 0)
array1.push("&autoscaleuserid=" + args.data.username);
$.ajax({