Skip to content

Commit a22abeb

Browse files
committed
CLOUDSTACK-7328:[Automation] Register ISO failing with invalid iso
format error.
1 parent cf8a00c commit a22abeb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/src/com/cloud/utils/UriUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ private static void checkFormat(String format, String uripath) {
337337
&& !uripath.toLowerCase().endsWith("vmdk.bz2")
338338
&& !uripath.toLowerCase().endsWith("vmdk.gz")))
339339
|| (format.equalsIgnoreCase("iso")
340-
&& (!uripath.toLowerCase().endsWith("iso.zip")
340+
&& (!uripath.toLowerCase().endsWith("iso")
341+
&& !uripath.toLowerCase().endsWith("iso.zip")
341342
&& !uripath.toLowerCase().endsWith("iso.bz2")
342343
&& !uripath.toLowerCase().endsWith("iso.gz")))) {
343344
throw new IllegalArgumentException("Please specify a valid URL. URL:" + uripath + " is an invalid for the format " + format.toLowerCase());

0 commit comments

Comments
 (0)