Skip to content

Commit

Permalink
fix: marshal instance type using generic function
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Apr 11, 2024
1 parent 22be39a commit bce383c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/aws_node_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"k8s.io/utils/ptr"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"

"github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/api/variables"
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/variables"
)

const (
Expand Down Expand Up @@ -103,7 +103,7 @@ func (i InstanceType) VariableSchema() clusterv1.VariableSchema {
OpenAPIV3Schema: clusterv1.JSONSchemaProps{
Type: "string",
Description: "The AWS instance type to use for the cluster Machines",
Default: variables.MustMarshal(string(i)),
Default: variables.MustMarshal(i),
},
}
}
Expand Down

0 comments on commit bce383c

Please sign in to comment.