mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Merge pull request #1692 from ibuildthecloud/err
Check for error on mkdir
This commit is contained in:
commit
21266bab7e
@ -108,7 +108,9 @@ func Run(ctx context.Context, cfg cmds.Agent) error {
|
||||
}
|
||||
|
||||
cfg.DataDir = filepath.Join(cfg.DataDir, "agent")
|
||||
os.MkdirAll(cfg.DataDir, 0700)
|
||||
if err := os.MkdirAll(cfg.DataDir, 0700); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
lb, err := loadbalancer.Setup(ctx, cfg)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user