mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-7328:[Automation] Register ISO failing with invalid iso
format error.
This commit is contained in:
parent
cf8a00cbfd
commit
a22abeb0e7
@ -337,7 +337,8 @@ public class UriUtils {
|
||||
&& !uripath.toLowerCase().endsWith("vmdk.bz2")
|
||||
&& !uripath.toLowerCase().endsWith("vmdk.gz")))
|
||||
|| (format.equalsIgnoreCase("iso")
|
||||
&& (!uripath.toLowerCase().endsWith("iso.zip")
|
||||
&& (!uripath.toLowerCase().endsWith("iso")
|
||||
&& !uripath.toLowerCase().endsWith("iso.zip")
|
||||
&& !uripath.toLowerCase().endsWith("iso.bz2")
|
||||
&& !uripath.toLowerCase().endsWith("iso.gz")))) {
|
||||
throw new IllegalArgumentException("Please specify a valid URL. URL:" + uripath + " is an invalid for the format " + format.toLowerCase());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user