distro/*: remove redundant manifest tests

The same test is run in distro/distro_test.go. The redundancy was probably
caused by a bitrot in several commits.

I decided to remove the test from distro implementations to reduce the amount
of duplicated code.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-03-11 13:01:05 +01:00 committed by Ondřej Budai
parent 3c715c7cf8
commit a7dee8b604
5 changed files with 6 additions and 24 deletions

View file

@ -65,10 +65,6 @@ func main() {
}
distros := distroregistry.NewDefault()
if err != nil {
panic(err)
}
d := distros.GetDistro(composeRequest.Distro)
if d == nil {
_, _ = fmt.Fprintf(os.Stderr, "The provided distribution '%s' is not supported. Use one of these:\n", composeRequest.Distro)