Abort inspect exec rewrite unless Containers node is present

This commit is contained in:
Adam Harrison committed 2016-01-20 14:24:28 +00:00
1 parent 13ec517f94
commit a3974c2aeb
1 file changed
+4
+4
View File
@@ -22,6 +22,10 @@ func (i *inspectExecInterceptor) InterceptResponse(r *http.Response) error {
return err
}
if _, ok := exec["Container"]; !ok {
return nil
}
container, err := exec.Object("Container")
if err != nil {
return err