Skip to content

Commit de111a0

Browse files
author
zhouhao
committed
validate: modify the information output
Signed-off-by: zhouhao <[email protected]>
1 parent 69626a4 commit de111a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate/validate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ func (v *Validator) CheckLinux() (msgs []string) {
511511

512512
for _, maskedPath := range v.spec.Linux.MaskedPaths {
513513
if !strings.HasPrefix(maskedPath, "/") {
514-
msgs = append(msgs, "maskedPath %v is not an absolute path", maskedPath)
514+
msgs = append(msgs, fmt.Sprintf("maskedPath %v is not an absolute path", maskedPath))
515515
}
516516
}
517517

518518
for _, readonlyPath := range v.spec.Linux.ReadonlyPaths {
519519
if !strings.HasPrefix(readonlyPath, "/") {
520-
msgs = append(msgs, "readonlyPath %v is not an absolute path", readonlyPath)
520+
msgs = append(msgs, fmt.Sprintf("readonlyPath %v is not an absolute path", readonlyPath))
521521
}
522522
}
523523

0 commit comments

Comments
 (0)