Commit Graph
2 Commits
Author SHA1 Message Date
Donald Huang 0b23ea825a add tests for docker stats versioning
testing for #17549

Signed-off-by: Donald Huang <don.hcd@gmail.com>
Upstream-commit: 8ceded6d0384bef32dfddf800057fa08d910e95e
Component: engine
2015-10-31 00:23:08 +00:00
Donald Huang 493276a67c fix pre-1.22 docker stats
This fixes a bug introduced in #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>
Upstream-commit: d2c04f844b8258d712da4b8feac25df7590b037c
Component: engine
2015-10-30 22:28:03 +00:00