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

Add requested comments about old buggy behavior

Address comment: 246d1eb58e (r75242138)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2016-08-18 10:07:22 -04:00
parent d854c4fcc6
commit c7075bd149

View file

@ -95,6 +95,8 @@ func New(scope string, rootUID, rootGID int) (*Root, error) {
if err := json.Unmarshal(b, &opts); err != nil { if err := json.Unmarshal(b, &opts); err != nil {
return nil, err return nil, err
} }
// Make sure this isn't an empty optsConfig.
// This could be empty due to buggy behavior in older versions of Docker.
if !reflect.DeepEqual(opts, optsConfig{}) { if !reflect.DeepEqual(opts, optsConfig{}) {
v.opts = &opts v.opts = &opts
} }