cloudstack 3.0 UI - autoscale - for regular user - fix a bug that createAutoScaleVmProfile API fails because autoscaleuserid is undefined.

This commit is contained in:
Jessica Wang 2012-08-07 13:20:52 -07:00 committed by Vijay Venkatachalam
parent 9076ee5018
commit 45f8b8f553
1 changed files with 1 additions and 1 deletions

View File

@ -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({