Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
fix(nodes): fix location id check
Browse files Browse the repository at this point in the history
this makes the nodes datasource actually usable
  • Loading branch information
Luiggi33 committed Aug 4, 2024
1 parent 2ae4958 commit bd0b183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/nodes_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (d *nodesDataSource) Read(ctx context.Context, req datasource.ReadRequest,

// Map response body to model
for _, node := range nodes {
if state.LocationID.IsNull() && node.LocationID != state.LocationID.ValueInt32() {
if !state.LocationID.IsNull() && node.LocationID != state.LocationID.ValueInt32() {
continue
}
state.Nodes = append(state.Nodes, Node{
Expand Down

0 comments on commit bd0b183

Please sign in to comment.