update Fedora cloud image hyperlink format
This commit is contained in:
parent
871cacde4e
commit
62bafe7522
|
@ -93,7 +93,7 @@ func (mgr *FedoraTemplateManager) GetLatestVersion() (version string, codename s
|
|||
}
|
||||
|
||||
func (mgr *FedoraTemplateManager) DownloadTemplate(version, codename string) (path string, err error) {
|
||||
pattern := regexp.MustCompile(fmt.Sprintf("^Fedora-Cloud-Base-%s-\\d+(\\.\\d+)?\\.x86_64\\.qcow2$", version))
|
||||
pattern := regexp.MustCompile(fmt.Sprintf(`^Fedora-Cloud-Base-Generic\.x86_64-%s-\d+\.\d+\.qcow2$`, version))
|
||||
imagesUrl := fmt.Sprintf("https://mirror.csclub.uwaterloo.ca/fedora/linux/releases/%s/Cloud/x86_64/images/", version)
|
||||
resp, err := http.Get(imagesUrl)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue