Skip to content

Commit 10a5bda

Browse files
author
Jessica Wang
committed
cloudstack UI - regular user in project view - VPC - tier - deploy VM - should pass projectid instead of account parameter to deployVirtualMachine API.
1 parent 939e060 commit 10a5bda

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/scripts/instanceWizard.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,11 @@
523523
if(args.context.networks != null) { //from VPC tier
524524
array1.push("&networkIds=" + args.context.networks[0].id);
525525
array1.push("&domainid=" + args.context.vpc[0].domainid);
526-
array1.push("&account=" + args.context.vpc[0].account);
526+
527+
if(args.context.vpc[0].account != null)
528+
array1.push("&account=" + args.context.vpc[0].account);
529+
else if(args.context.vpc[0].projectid != null)
530+
array1.push("&projectid=" + args.context.vpc[0].projectid);
527531
}
528532
}
529533

0 commit comments

Comments
 (0)