Skip to content

Commit

Permalink
controlplane/server: Fix list() return value (#190)
Browse files Browse the repository at this point in the history
Fix the get list() return value for peer, export and import.

Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo authored Nov 15, 2023
1 parent 23f4263 commit d2e911d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controlplane/server/http/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (h *peerHandler) List() (any, error) {
for i, peer := range peers {
apiPeers[i] = peerToAPI(peer)
}
return peers, nil
return apiPeers, nil
}

type exportHandler struct {
Expand Down Expand Up @@ -196,7 +196,7 @@ func (h *exportHandler) List() (any, error) {
for i, export := range exports {
apiExports[i] = exportToAPI(export)
}
return exports, nil
return apiExports, nil
}

type importHandler struct {
Expand Down Expand Up @@ -269,7 +269,7 @@ func (h *importHandler) List() (any, error) {
for i, imp := range imports {
apiImports[i] = importToAPI(imp)
}
return imports, nil
return apiImports, nil
}

type bindingHandler struct {
Expand Down

0 comments on commit d2e911d

Please sign in to comment.