Skip to content

Commit

Permalink
Fix master after merging conflicting PRs #1531 and #1584
Browse files Browse the repository at this point in the history
They both passed tests separately and were no source-line conflicts ... but shit happens.
  • Loading branch information
Alfonso Acosta committed Jun 15, 2016
1 parent 5d07b99 commit 0587c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions probe/docker/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Registry interface {
WatchContainerUpdates(ContainerUpdateWatcher)
GetContainer(string) (Container, bool)
GetContainerByPrefix(string) (Container, bool)
GetContainerImage(string) (*docker_client.APIImages, bool)
GetContainerImage(string) (docker_client.APIImages, bool)
}

// ContainerUpdateWatcher is the type of functions that get called when containers are updated.
Expand Down Expand Up @@ -417,7 +417,7 @@ func (r *registry) GetContainerByPrefix(prefix string) (Container, bool) {
return nil, false
}

func (r *registry) GetContainerImage(id string) (*docker_client.APIImages, bool) {
func (r *registry) GetContainerImage(id string) (docker_client.APIImages, bool) {
r.RLock()
defer r.RUnlock()
image, ok := r.images[id]
Expand Down
2 changes: 1 addition & 1 deletion probe/docker/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *mockRegistry) GetContainer(_ string) (docker.Container, bool) { return

func (r *mockRegistry) GetContainerByPrefix(_ string) (docker.Container, bool) { return nil, false }

func (r *mockRegistry) GetContainerImage(id string) (*client.APIImages, bool) {
func (r *mockRegistry) GetContainerImage(id string) (client.APIImages, bool) {
image, ok := r.images[id]
return image, ok
}
Expand Down

0 comments on commit 0587c6a

Please sign in to comment.