osbuild2: remove Prints in lvm.create stage test

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
Achilleas Koutsou 2021-09-08 13:12:25 +02:00 committed by Ondřej Budai
parent 682fc245e5
commit 65f1a24ecd

View file

@ -22,11 +22,8 @@ func (o LVM2CreateStageOptions) validate() error {
nameRegex := regexp.MustCompile(lvmVolNameRegex)
for _, volume := range o.Volumes {
fmt.Printf("testing volume %q\n", volume.Name)
if !nameRegex.MatchString(volume.Name) {
return fmt.Errorf("volume name %q doesn't conform to schema (%s)", volume.Name, nameRegex.String())
} else {
fmt.Printf("volume.Name %q is ok\n", volume.Name)
}
}
return nil