rafaelweingartner commented on a change in pull request #2298: CLOUDSTACK-9620:
Enhancements for managed storage
URL: https://github.com/apache/cloudstack/pull/2298#discussion_r161182332
##########
File path: core/src/com/cloud/agent/api/MigrateCommand.java
##########
@@ -68,4 +93,79 @@ public String getHostGuid() {
public boolean executeInSequence() {
return executeInSequence;
}
+
+ public static class MigrateDiskInfo {
+ public enum DiskType {
+ FILE, BLOCK;
+
+ @Override
+ public String toString() {
+ switch(this) {
Review comment:
This does not make much sense. It is an enum, you will not be able to
"instantiate" anything different from your constants. You can simply return
this.name.toLowerCase, if you only want the name of the enum in lower case
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services