Fix minor stylistic issues

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel
2015-08-04 17:44:45 -04:00
parent a28f627c39
commit f3a3025933
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -333,17 +333,17 @@ func setupUserNamespace(spec *specs.LinuxSpec, config *configs.Config) error {
for _, m := range spec.Linux.GIDMappings {
config.GidMappings = append(config.GidMappings, create(m))
}
rootUid, err := config.HostUID()
rootUID, err := config.HostUID()
if err != nil {
return err
}
rootGid, err := config.HostGID()
rootGID, err := config.HostGID()
if err != nil {
return err
}
for _, node := range config.Devices {
node.Uid = uint32(rootUid)
node.Gid = uint32(rootGid)
node.Uid = uint32(rootUID)
node.Gid = uint32(rootGID)
}
return nil
}