Fix retrieval of container Runtime.Options field

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-08-31 08:39:00 -07:00
parent 6b4c4a2937
commit e0d8cb1366
No known key found for this signature in database
GPG Key ID: 40CF16616B361216

View File

@ -335,18 +335,13 @@ func writeContainer(bkt *bolt.Bucket, container *containers.Container) error {
return err return err
} }
obkt, err := rbkt.CreateBucket(bucketKeyOptions)
if err != nil {
return err
}
if container.Runtime.Options != nil { if container.Runtime.Options != nil {
data, err := proto.Marshal(container.Runtime.Options) data, err := proto.Marshal(container.Runtime.Options)
if err != nil { if err != nil {
return err return err
} }
if err := obkt.Put(bucketKeyOptions, data); err != nil { if err := rbkt.Put(bucketKeyOptions, data); err != nil {
return err return err
} }
} }