(distro string)
| 345 | } |
| 346 | |
| 347 | func getDefaultReleaseForDistro(distro string) (string, error) { |
| 348 | if distro == "" { |
| 349 | panic("distro not specified") |
| 350 | } |
| 351 | |
| 352 | distroObj, supportedDistro := supportedDistros[distro] |
| 353 | if !supportedDistro { |
| 354 | panicMsg := fmt.Sprintf("failed to find %s in the list of supported distributions", distro) |
| 355 | panic(panicMsg) |
| 356 | } |
| 357 | |
| 358 | release, err := distroObj.GetDefaultRelease() |
| 359 | if err != nil { |
| 360 | return "", err |
| 361 | } |
| 362 | |
| 363 | return release, nil |
| 364 | } |
| 365 | |
| 366 | func GetEnvOptionsForPreservedVariables() []string { |
| 367 | logrus.Debug("Creating list of environment variables to forward") |
no outgoing calls
no test coverage detected
searching dependent graphs…