Skip to content

Commit 73efc10

Browse files
committed
Update #6790: use uppercase
1 parent 1f6ac33 commit 73efc10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImageOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)