Skip to content

Commit

Permalink
Fix kubernetes_node_pool table to correctly fetch node-pools when Aut…
Browse files Browse the repository at this point in the history
…oPilot is not available (#668)
  • Loading branch information
multani authored Oct 28, 2024
1 parent 6705dd2 commit 9d13ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/table_gcp_kubernetes_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func listKubernetesNodePools(ctx context.Context, d *plugin.QueryData, h *plugin
// This operation is not allowed if the cluster has Autopilot Enabled.
// We are getting the error Error: gcp: googleapi: Error 400: Autopilot node pools cannot be accessed or modified.

if cluster.Autopilot.Enabled {
if cluster.Autopilot != nil && cluster.Autopilot.Enabled {
return nil, nil
}

Expand Down

0 comments on commit 9d13ac8

Please sign in to comment.