mirror of https://github.com/apache/cloudstack.git
fixBugs finding
fm.equals(format) breaks equals contract Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
13e0f293ed
commit
cecb216caa
|
|
@ -36,7 +36,7 @@ public class ImageFormatHelper {
|
|||
|
||||
public static ImageFormat getFormat(String format) {
|
||||
for (ImageFormat fm : formats) {
|
||||
if (fm.equals(format)) {
|
||||
if (fm.toString().equals(format)) {
|
||||
return fm;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue