Skip to content

Commit

Permalink
Fix tag filtering. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Aug 21, 2023
1 parent 7709817 commit 5b6a95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/provider/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (p *Provider) DeleteMachine(ctx context.Context, req *driver.DeleteMachineR
mfr := &models.V1MachineFindRequest{
ID: id,
AllocationProject: providerSpec.Project,
Tags: []string{clusterIDTag},
Tags: []string{fmt.Sprintf("%s=%s", tag.ClusterID, clusterIDTag)},
}

resp, err := m.Machine().FindMachines(machine.NewFindMachinesParams().WithBody(mfr), nil)
Expand Down Expand Up @@ -321,7 +321,7 @@ func (p *Provider) ListMachines(ctx context.Context, req *driver.ListMachinesReq

findRequest := &models.V1MachineFindRequest{
AllocationProject: providerSpec.Project,
Tags: []string{clusterIDTag},
Tags: []string{fmt.Sprintf("%s=%s", tag.ClusterID, clusterIDTag)},
}
resp, err := m.Machine().FindMachines(machine.NewFindMachinesParams().WithBody(findRequest), nil)
if err != nil {
Expand Down

0 comments on commit 5b6a95a

Please sign in to comment.