Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenGLShaders committed Dec 29, 2023
1 parent bdd5332 commit 832152e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/provider/deployment_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ func (r *DeploymentResource) Create(ctx context.Context, req resource.CreateRequ

// TODO fill out the rest
data.CloudProvider = types.StringValue(strings.ToUpper(deployResponse.CloudProvider))
data.ClusterId = types.StringValue(deployResponse.ClusterId)
if data.ClusterId.ValueString() != "" {
data.ClusterId = types.StringValue(deployResponse.ClusterId)
}
// data.DbInstanceType = types.StringValue(deployResponse.CloudProvider)
data.Id = types.StringValue(deployResponse.Id)
// data.IsLimited
Expand Down Expand Up @@ -320,7 +322,9 @@ func (r *DeploymentResource) Read(ctx context.Context, req resource.ReadRequest,

// data.AstroRuntimeVersion = types.StringValue(deployment.Astro)
data.CloudProvider = types.StringValue(strings.ToUpper(deployment.CloudProvider))
data.ClusterId = types.StringValue(deployment.ClusterId)
if data.ClusterId.ValueString() != "" {
data.ClusterId = types.StringValue(deployment.ClusterId)
}
data.Id = types.StringValue(deployment.Id)
data.DefaultTaskPodCpu = types.StringValue(deployment.DefaultTaskPodCpu)
data.DefaultTaskPodMemory = types.StringValue(deployment.DefaultTaskPodMemory)
Expand Down

0 comments on commit 832152e

Please sign in to comment.