kubelet: Use MkdirAll instead of Mkdir

This commit is contained in:
Lucas Käldström
2016-05-22 00:23:18 +03:00
parent 45514f729e
commit 2022c44409
5 changed files with 10 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ func (kl *Kubelet) RunOnce(updates <-chan kubetypes.PodUpdate) ([]RunPodResult,
// If the container logs directory does not exist, create it.
if _, err := os.Stat(containerLogsDir); err != nil {
if err := kl.os.Mkdir(containerLogsDir, 0755); err != nil {
if err := kl.os.MkdirAll(containerLogsDir, 0755); err != nil {
glog.Errorf("Failed to create directory %q: %v", containerLogsDir, err)
}
}