Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1176#discussion_r46769041 --- Diff: plugins/hypervisors/xenserver/src/com/cloud/hypervisor/XenServerGuru.java --- @@ -185,7 +185,8 @@ public boolean trackVmHostChange() { DataTO srcData = cpyCommand.getSrcTO(); DataTO destData = cpyCommand.getDestTO(); - if (srcData.getObjectType() == DataObjectType.SNAPSHOT && destData.getObjectType() == DataObjectType.TEMPLATE) { + if (srcData.getHypervisorType() == HypervisorType.XenServer && srcData.getObjectType() == DataObjectType.SNAPSHOT && --- End diff -- @anshul1886 What you show is implementation dependent. Unless the specification confirms this behaviour, I think .equals is better.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---