osbuild2: remove Prints in lvm.create stage test
Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
parent
682fc245e5
commit
65f1a24ecd
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue