Commit fafccad3 authored by Pengfei Ni's avatar Pengfei Ni

dockertools: add image ref to ImageService interfaces

parent fcbf39ea
...@@ -478,6 +478,7 @@ func (f *FakeDockerClient) PullImage(image string, auth dockertypes.AuthConfig, ...@@ -478,6 +478,7 @@ func (f *FakeDockerClient) PullImage(image string, auth dockertypes.AuthConfig,
err := f.popError("pull") err := f.popError("pull")
if err == nil { if err == nil {
authJson, _ := json.Marshal(auth) authJson, _ := json.Marshal(auth)
f.Image = &dockertypes.ImageInspect{ID: image}
f.pulled = append(f.pulled, fmt.Sprintf("%s using %s", image, string(authJson))) f.pulled = append(f.pulled, fmt.Sprintf("%s using %s", image, string(authJson)))
} }
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment