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:
parent
cd3d0486a6
commit
426f4e48e3
1 changed files with 6 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue