Skip to content

Commit

Permalink
include search registries in varlink info response
Browse files Browse the repository at this point in the history
fixes: containers#4793

Signed-off-by: baude <[email protected]>
  • Loading branch information
baude committed Jan 6, 2020
1 parent 9758a97 commit 0449dc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/varlinkapi/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error {
Graph_driver_options: fmt.Sprintf("%v", store["GraphOptions"]),
Graph_status: graphStatus,
}

if len(info) > 2 {
registriesInterface := info[2].Data["registries"]
registriesInterface := info[2].Data["search"]
if registriesInterface != nil {
registries = registriesInterface.([]string)
}
Expand Down

0 comments on commit 0449dc4

Please sign in to comment.