mirror of https://github.com/k3s-io/k3s
Catch error when failed to make directory in NFS volume plugin
parent
9eb82fadc4
commit
13660ef701
|
@ -218,7 +218,9 @@ func (b *nfsMounter) SetUpAt(dir string, fsGroup *int64) error {
|
|||
if !notMnt {
|
||||
return nil
|
||||
}
|
||||
os.MkdirAll(dir, 0750)
|
||||
if err := os.MkdirAll(dir, 0750); err != nil {
|
||||
return err
|
||||
}
|
||||
source := fmt.Sprintf("%s:%s", b.server, b.exportPath)
|
||||
options := []string{}
|
||||
if b.readOnly {
|
||||
|
|
Loading…
Reference in New Issue