Skip to content

Commit cecb216

Browse files
Ian SouthamDaanHoogland
authored andcommitted
fixBugs finding
fm.equals(format) breaks equals contract Signed-off-by: Daan Hoogland <daan@onecht.net>
1 parent 13e0f29 commit cecb216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void setFormats(List<ImageFormat> formats) {
3636

3737
public static ImageFormat getFormat(String format) {
3838
for (ImageFormat fm : formats) {
39-
if (fm.equals(format)) {
39+
if (fm.toString().equals(format)) {
4040
return fm;
4141
}
4242
}

0 commit comments

Comments
 (0)