Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle old versions of the libcontainer config. #370

Merged
merged 1 commit into from
Dec 17, 2014

Conversation

vmarmol
Copy link
Contributor

@vmarmol vmarmol commented Dec 17, 2014

Libcontainer recently changed its config by changing the type of a
field. This commit tries parsing the config as the new and old types.

@vmarmol
Copy link
Contributor Author

vmarmol commented Dec 17, 2014

Ping @rjnagal @vishh. We were broken by the last update of libcontainer.

d := json.NewDecoder(f)
retConfig := new(libcontainer.Config)
err = d.Decode(retConfig)
var config libcontainer.Config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ugly. May be put a TODO to remove it a few months from now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah...this is like the third such thing we have sadly. Added the TODO.

@vishh
Copy link
Contributor

vishh commented Dec 17, 2014

LGTM

Libcontainer recently changed its config by changing the type of a
field. This commit tries parsing the config as the new and old types.
vishh added a commit that referenced this pull request Dec 17, 2014
Handle old versions of the libcontainer config.
@vishh vishh merged commit e72a3bb into google:master Dec 17, 2014
@vmarmol vmarmol deleted the old-libcontainer branch December 17, 2014 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants