Skip to content

Commit

Permalink
fixed nil pointer exception in webhook w/ bad provisioner yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob committed Sep 19, 2021
1 parent 832f411 commit 0038155
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cloudprovider/aws/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func (c *CloudProvider) Default(ctx context.Context, v1alpha4constraints *v1alph
constraints, err := v1alpha1.NewConstraints(v1alpha4constraints)
if err != nil {
logging.FromContext(context.Background()).Errorf("failed to deserialize provider, %s", err.Error())
return
}
constraints.Default(ctx)
v1alpha4constraints.Provider.Raw, err = json.Marshal(constraints.AWS)
Expand Down

0 comments on commit 0038155

Please sign in to comment.