Fix for instance wizard, step 5

-Don't pass account and domainid if projects are active
This commit is contained in:
Brian Federle 2011-12-01 14:17:58 -08:00
parent 229b08fd48
commit 7f672097f9

View File

@ -216,8 +216,18 @@
//step5ContainerType = 'nothing-to-select'; //for testing only, comment it out before checking in!!!!!!!!!!!!
if(step5ContainerType == 'select-network') {
var defaultNetworkArray = [], optionalNetworkArray = [];
var networkData = {
zoneId: args.currentData.zoneid
};
if (!(cloudStack.context.projects && cloudStack.context.projects[0])) {
networkData.domainid = g_domainid;
networkData.account = g_account;
}
$.ajax({
url: createURL("listNetworks&domainid="+g_domainid+"&account="+g_account+"&zoneId="+args.currentData.zoneid),
url: createURL('listNetworks'),
data: networkData,
dataType: "json",
async: false,
success: function(json) {