Remove sharing references across the code

This commit is contained in:
Kristoffer Dalby
2022-02-21 23:01:35 +00:00
parent 9411ec47c3
commit 24a8e198a1
3 changed files with 3 additions and 138 deletions

View File

@@ -232,15 +232,6 @@ func (api headscaleV1APIServer) ListMachines(
return nil, err
}
sharedMachines, err := api.h.ListSharedMachinesInNamespace(
request.GetNamespace(),
)
if err != nil {
return nil, err
}
machines = append(machines, sharedMachines...)
response := make([]*v1.Machine, len(machines))
for index, machine := range machines {
response[index] = machine.toProto()