File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class QemuImageOptions {
3232 private static final String DRIVER = "driver" ;
3333
3434 private QemuImg .PhysicalDiskFormat format ;
35- private static final List <QemuImg .PhysicalDiskFormat > supportedFormats = Arrays .asList (QemuImg .PhysicalDiskFormat .QCOW2 , QemuImg .PhysicalDiskFormat .LUKS );
35+ private static final List <QemuImg .PhysicalDiskFormat > DISK_FORMATS_THAT_SUPPORT_OPTION_IMAGE_OPTS = Arrays .asList (QemuImg .PhysicalDiskFormat .QCOW2 , QemuImg .PhysicalDiskFormat .LUKS );
3636
3737 public QemuImageOptions (String filePath ) {
3838 params .put (FILENAME_PARAM_KEY , filePath );
@@ -76,7 +76,7 @@ public void setFormat(QemuImg.PhysicalDiskFormat format) {
7676 * @return array of strings representing command flag and value (--image-opts)
7777 */
7878 public String [] toCommandFlag () {
79- if (format == null || !supportedFormats .contains (format )) {
79+ if (format == null || !DISK_FORMATS_THAT_SUPPORT_OPTION_IMAGE_OPTS .contains (format )) {
8080 return new String [] { params .get (FILENAME_PARAM_KEY ) };
8181 }
8282 Map <String , String > sorted = new TreeMap <>(params );
You can’t perform that action at this time.
0 commit comments