(distro, release string)
| 330 | } |
| 331 | |
| 332 | func getDefaultImageForDistro(distro, release string) string { |
| 333 | if distro == "" { |
| 334 | panic("distro not specified") |
| 335 | } |
| 336 | |
| 337 | distroObj, supportedDistro := supportedDistros[distro] |
| 338 | if !supportedDistro { |
| 339 | panicMsg := fmt.Sprintf("failed to find %s in the list of supported distributions", distro) |
| 340 | panic(panicMsg) |
| 341 | } |
| 342 | |
| 343 | image := distroObj.ImageBasename + ":" + release |
| 344 | return image |
| 345 | } |
| 346 | |
| 347 | func getDefaultReleaseForDistro(distro string) (string, error) { |
| 348 | if distro == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…