Github user rafaelweingartner commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1365#discussion_r58743442 --- Diff: server/src/com/cloud/storage/VolumeApiServiceImpl.java --- @@ -1924,6 +1935,23 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) { throw new InvalidParameterValueException("Cannot migrate ROOT volume of a stopped VM to a storage pool in a different VMware datacenter"); } } + --- End diff -- What about extracting lines 1939-1954 to a method? This can really help us to work on that code and the unit tests it deserves.
--- 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. ---