We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3ea70 commit eb04ff5Copy full SHA for eb04ff5
mantle/util/distros.go
@@ -16,23 +16,10 @@ package util
16
17
import (
18
"fmt"
19
- "path/filepath"
20
- "strings"
21
22
"github.com/coreos/coreos-assembler/pkg/builds"
23
)
24
25
-// TargetDistroFromName returns the distribution given
26
-// the path to an artifact (usually a disk image).
27
-func TargetDistroFromName(artifact string) string {
28
- basename := filepath.Base(artifact)
29
- if strings.HasPrefix(basename, "rhcos-") || strings.HasPrefix(basename, "scos-") {
30
- return "rhcos"
31
- }
32
- // For now, just assume fcos
33
- return "fcos"
34
-}
35
-
36
// TargetDistro returns the distribution of a cosa build
37
func TargetDistro(build *builds.Build) (string, error) {
38
switch build.Name {
0 commit comments