fixing typo in device access error
Signed-off-by: rajasec <rajasec79@gmail.com> fixing typo in device access error Signed-off-by: rajasec <rajasec79@gmail.com> Fixed review comments Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
parent
69f8a50081
commit
945ef1d51f
2
spec.go
2
spec.go
|
@ -385,7 +385,7 @@ func createCgroupConfig(name string, spec *specs.Spec) (*configs.Cgroup, error)
|
||||||
minor = *d.Minor
|
minor = *d.Minor
|
||||||
}
|
}
|
||||||
if d.Access == nil || *d.Access == "" {
|
if d.Access == nil || *d.Access == "" {
|
||||||
return nil, fmt.Errorf("device access at %d field canot be empty", i)
|
return nil, fmt.Errorf("device access at %d field cannot be empty", i)
|
||||||
}
|
}
|
||||||
dt, err := stringToDeviceRune(t)
|
dt, err := stringToDeviceRune(t)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue