Skip to content

Conversation

@donhcd
Copy link
Contributor

@donhcd donhcd commented Oct 30, 2015

This fixes a bug introduced in #15786:

Signed-off-by: Donald Huang don.hcd@gmail.com

This fixes a bug introduced in moby#15786:

* if a pre-v1.20 client requested docker stats, the daemon
would return both an API-compatible JSON blob *and* an API-incompatible JSON
blob: see https://gist.github.com/donhcd/338a5b3681cd6a071629

Signed-off-by: Donald Huang <don.hcd@gmail.com>
@donhcd donhcd force-pushed the fixPre122Stats branch 3 times, most recently from 147e2d1 to d2c04f8 Compare October 30, 2015 22:31
@donhcd donhcd changed the title fix pre-1.22 docker stats fix pre-1.21 docker stats Oct 30, 2015
@calavera
Copy link
Contributor

can we have tests to make sure we're returning the right structs in https://github.com/docker/docker/blob/master/integration-cli/docker_api_stats_test.go ?

@calavera
Copy link
Contributor

Changes look good to me, but we need to make sure this is the right behavior.

@calavera calavera added this to the 1.9.0 milestone Oct 30, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

@calavera are we sure about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this code already exists below on line 114 (in the new version)

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense thanks

@tiborvass
Copy link
Contributor

LGTM

1 similar comment
@calavera
Copy link
Contributor

LGTM

calavera added a commit that referenced this pull request Oct 30, 2015
@calavera calavera merged commit 9bf20c6 into moby:master Oct 30, 2015
@donhcd donhcd deleted the fixPre122Stats branch October 30, 2015 23:46
donhcd added a commit to donhcd/docker that referenced this pull request Oct 31, 2015
testing for moby#17549

Signed-off-by: Donald Huang <don.hcd@gmail.com>
@tiborvass tiborvass removed their assignment Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants