@@ -476,7 +476,7 @@ func (r *resourceCloudVmCluster) Create(ctx context.Context, req resource.Create
476
476
}
477
477
478
478
createTimeout := r .CreateTimeout (ctx , plan .Timeouts )
479
- createdVmCluster , err := waitCloudVmClusterCreated (ctx , conn , * out .CloudVmClusterId , createTimeout )
479
+ createdVmCluster , err := waitCloudVmClusterCreated (ctx , conn , aws . ToString ( out .CloudVmClusterId ) , createTimeout )
480
480
resp .Diagnostics .Append (resp .State .SetAttribute (ctx , path .Root (names .AttrID ), aws .ToString (out .CloudVmClusterId ))... )
481
481
if err != nil {
482
482
resp .Diagnostics .AddError (
@@ -486,8 +486,8 @@ func (r *resourceCloudVmCluster) Create(ctx context.Context, req resource.Create
486
486
return
487
487
}
488
488
hostnamePrefix := strings .Split (* input .Hostname , "-" )[0 ]
489
- plan .HostnamePrefix = types . StringValue ( hostnamePrefix )
490
- plan .HostnamePrefixComputed = types . StringValue ( * createdVmCluster .Hostname )
489
+ plan .HostnamePrefix = flex . StringValueToFramework ( ctx , hostnamePrefix )
490
+ plan .HostnamePrefixComputed = flex . StringToFramework ( ctx , createdVmCluster .Hostname )
491
491
//scan listener port not returned by API directly
492
492
plan .ScanListenerPortTcp = flex .Int32ToFramework (ctx , createdVmCluster .ListenerPort )
493
493
plan .GiVersionComputed = flex .StringToFramework (ctx , createdVmCluster .GiVersion )
@@ -515,7 +515,7 @@ func (r *resourceCloudVmCluster) Read(ctx context.Context, req resource.ReadRequ
515
515
return
516
516
}
517
517
518
- out , err := FindCloudVmClusterForResourceByID (ctx , conn , state .CloudVmClusterId .ValueString ())
518
+ out , err := findCloudVmClusterForResourceByID (ctx , conn , state .CloudVmClusterId .ValueString ())
519
519
if tfresource .NotFound (err ) {
520
520
resp .Diagnostics .Append (fwdiag .NewResourceNotFoundWarningDiagnostic (err ))
521
521
resp .State .RemoveResource (ctx )
@@ -620,7 +620,7 @@ func waitCloudVmClusterDeleted(ctx context.Context, conn *odb.Client, id string,
620
620
621
621
func statusCloudVmCluster (ctx context.Context , conn * odb.Client , id string ) retry.StateRefreshFunc {
622
622
return func () (any , string , error ) {
623
- out , err := FindCloudVmClusterForResourceByID (ctx , conn , id )
623
+ out , err := findCloudVmClusterForResourceByID (ctx , conn , id )
624
624
if tfresource .NotFound (err ) {
625
625
return nil , "" , nil
626
626
}
@@ -633,7 +633,7 @@ func statusCloudVmCluster(ctx context.Context, conn *odb.Client, id string) retr
633
633
}
634
634
}
635
635
636
- func FindCloudVmClusterForResourceByID (ctx context.Context , conn * odb.Client , id string ) (* odbtypes.CloudVmCluster , error ) {
636
+ func findCloudVmClusterForResourceByID (ctx context.Context , conn * odb.Client , id string ) (* odbtypes.CloudVmCluster , error ) {
637
637
input := odb.GetCloudVmClusterInput {
638
638
CloudVmClusterId : aws .String (id ),
639
639
}
0 commit comments