Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Oren committed Dec 31, 2022
1 parent d782256 commit b7ac4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ func main() {
}

res, err := c.Services.Kubernetes.ProviderOptions.GetProviderOptionsWithResponse(ctx)
if aggregatedError := validate.Response(res, err, "JSON200"); aggregatedError != nil {
if aggregatedError := validate.Response(res, err, "JSON200.AvailabilityZones"); aggregatedError != nil {
panic(aggregatedError)
}

if res.JSON200.AvailabilityZones == nil || len(*res.JSON200.AvailabilityZones) == 0 {
if len(*res.JSON200.AvailabilityZones) == 0 {
fmt.Println("No Kubernetes availability zones found")
return
}
Expand Down

0 comments on commit b7ac4bf

Please sign in to comment.