From 211524f3bcd304852b57f1b248163b26527d4fd4 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 30 Jul 2013 11:37:05 -0700 Subject: [PATCH] add note on vmwarweguru->getCommandHostDelegation --- .../vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java index 95152fccb57..d699a1e94f5 100644 --- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java +++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java @@ -300,6 +300,8 @@ public class VMwareGuru extends HypervisorGuruBase implements HypervisorGuru { public Pair getCommandHostDelegation(long hostId, Command cmd) { boolean needDelegation = false; + //NOTE: the hostid can be a hypervisor host, or a ssvm agent. For copycommand, if it's for volume upload, the hypervisor + //type is empty, so we need to check the format of volume at first. if (cmd instanceof CopyCommand) { CopyCommand cpyCommand = (CopyCommand)cmd; DataTO srcData = cpyCommand.getSrcTO();