Github user karuturi commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/334#discussion_r31692655
--- Diff:
api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
---
@@ -215,33 +221,39 @@ public long getEntityOwnerId() {
if (volumeId != null) {
Volume volume = _entityMgr.findById(Volume.class, volumeId);
if (volume != null) {
- accountId = volume.getAccountId();
--- End diff --
accountId is unused. Can we initialize it with
CallContext.current().getCallingAccount() and use it (which saves some function
calls)?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---