Skip to content

Commit

Permalink
Merge pull request #91 from humanitec/dont-set-from-deploy-id
Browse files Browse the repository at this point in the history
fix(environment): don't set from_deploy_id
  • Loading branch information
johanneswuerbach authored May 31, 2024
2 parents 9e315d2 + 871a7cb commit 166071a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/provider/resource_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,6 @@ func (r *ResourceEnvironment) ImportState(ctx context.Context, req resource.Impo
}

func parseEnvironmentResponse(appID string, res *client.EnvironmentResponse, data *EnvironmentModel) {
var fromDeployId *string
if res.FromDeploy != nil {
fromDeployId = &res.FromDeploy.Id
}

data.FromDeployID = types.StringPointerValue(fromDeployId)
data.AppID = types.StringValue(appID)
data.ID = types.StringValue(res.Id)
data.Name = types.StringValue(res.Name)
Expand Down

0 comments on commit 166071a

Please sign in to comment.