Skip to content

Commit bce383c

Browse files
committed
fix: marshal instance type using generic function
1 parent 22be39a commit bce383c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1alpha1/aws_node_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"k8s.io/utils/ptr"
99
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
1010

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

1414
const (
@@ -103,7 +103,7 @@ func (i InstanceType) VariableSchema() clusterv1.VariableSchema {
103103
OpenAPIV3Schema: clusterv1.JSONSchemaProps{
104104
Type: "string",
105105
Description: "The AWS instance type to use for the cluster Machines",
106-
Default: variables.MustMarshal(string(i)),
106+
Default: variables.MustMarshal(i),
107107
},
108108
}
109109
}

0 commit comments

Comments
 (0)