update Fedora cloud image hyperlink format

This commit is contained in:
Max Erenberg 2024-05-11 20:27:54 -04:00
parent 871cacde4e
commit 62bafe7522
1 changed files with 1 additions and 1 deletions

View File

@ -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 {