Skip to content

Commit bcbc917

Browse files
committed
fix(cockpit): ignore deprecated field plan
1 parent 494bc9e commit bcbc917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/services/cockpit/cockpit.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func ResourceCockpitCreate(ctx context.Context, d *schema.ResourceData, m interf
103103
if targetPlanI, ok := d.GetOk("plan"); ok {
104104
targetPlan := targetPlanI.(string)
105105

106-
plans, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages())
106+
plans, err := api.ListPlans(&cockpit.GlobalAPIListPlansRequest{}, scw.WithContext(ctx), scw.WithAllPages()) //nolint:staticcheck
107107
if err != nil {
108108
return diag.FromErr(err)
109109
}
@@ -120,7 +120,7 @@ func ResourceCockpitCreate(ctx context.Context, d *schema.ResourceData, m interf
120120
return diag.Errorf("plan %s not found", targetPlan)
121121
}
122122

123-
_, err = api.SelectPlan(&cockpit.GlobalAPISelectPlanRequest{
123+
_, err = api.SelectPlan(&cockpit.GlobalAPISelectPlanRequest{ //nolint:staticcheck
124124
ProjectID: projectID,
125125
PlanName: cockpit.PlanName(planName),
126126
}, scw.WithContext(ctx))
@@ -151,7 +151,7 @@ func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interfac
151151
}
152152
}
153153

154-
res, err := api.GetCurrentPlan(&cockpit.GlobalAPIGetCurrentPlanRequest{
154+
res, err := api.GetCurrentPlan(&cockpit.GlobalAPIGetCurrentPlanRequest{ //nolint:staticcheck
155155
ProjectID: projectID,
156156
}, scw.WithContext(ctx))
157157
if err != nil {

0 commit comments

Comments
 (0)