Skip to content

Commit

Permalink
wip 2
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed Feb 19, 2025
1 parent b72882b commit f185933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions internal/provider/waypoint/resource_waypoint_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ func (r *ApplicationResource) Read(ctx context.Context, req resource.ReadRequest
data.OrgID = types.StringValue(orgID)
data.TemplateName = types.StringValue(application.ApplicationTemplate.Name)

data.Actions = types.ListNull(types.StringType)
if application.ActionCfgRefs != nil {
var actionIDs []string
for _, n := range application.ActionCfgRefs {
Expand All @@ -493,8 +494,6 @@ func (r *ApplicationResource) Read(ctx context.Context, req resource.ReadRequest
data.Actions = types.ListNull(types.StringType)
}
data.Actions = actions
} else {
data.Actions = types.ListNull(types.StringType)
}

// set plan.readme if it's not null or application.readme is not
Expand Down
3 changes: 1 addition & 2 deletions internal/provider/waypoint/resource_waypoint_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ func (r *TemplateResource) Read(ctx context.Context, req resource.ReadRequest, r
}
data.Labels = labels

data.Actions = types.ListNull(types.StringType)
if appTemplate.ActionCfgRefs != nil {
var actionIDs []string
for _, action := range appTemplate.ActionCfgRefs {
Expand All @@ -559,8 +560,6 @@ func (r *TemplateResource) Read(ctx context.Context, req resource.ReadRequest, r
actions = types.ListNull(types.StringType)
}
data.Actions = actions
} else {
data.Actions = types.ListNull(types.StringType)
}

// set data.description if it's not null or appTemplate.description is not
Expand Down

0 comments on commit f185933

Please sign in to comment.