1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

daemon: Check return value of createSecretDir

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
Aaron Lehmann 2017-07-26 10:37:32 -07:00 committed by Brian Goff
parent cd3d0486a6
commit 426f4e48e3

View file

@ -167,7 +167,9 @@ func (daemon *Daemon) setupSecretDir(c *container.Container, hasSecretDir *bool)
}
if !*hasSecretDir {
daemon.createSecretDir(c)
if err := daemon.createSecretDir(c); err != nil {
return err
}
*hasSecretDir = true
}
@ -329,7 +331,9 @@ func (daemon *Daemon) setupConfigDir(c *container.Container, hasSecretDir *bool)
configRef.Sensitive = true
fPath, err = c.SensitiveConfigFilePath(*configRef.ConfigReference)
if !*hasSecretDir {
daemon.createSecretDir(c)
if err := daemon.createSecretDir(c); err != nil {
return err
}
*hasSecretDir = true
}
} else {