Skip to content

Commit 1fc51b2

Browse files
committed
fix lint
1 parent 30f9570 commit 1fc51b2

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

docs/data-sources/webhosting_offer.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ In addition to all arguments above, the following attributes are exported:
5656
- `quota_warning` - Warning information regarding quota limitations.
5757
- `price` - The price of the offer.
5858
- `options` - A list of available options for the offer:
59-
- `id` - The unique identifier of the option.
60-
- `name` - The name of the option.
61-
- `billing_operation_path` - The billing operation identifier for the option.
62-
- `min_value` - The minimum value for the option.
63-
- `current_value` - The current value set for the option.
64-
- `max_value` - The maximum allowed value for the option.
65-
- `quota_warning` - Warning information regarding quota limitations for the option.
66-
- `price` - The price of the option.
59+
- `id` - The unique identifier of the option.
60+
- `name` - The name of the option.
61+
- `billing_operation_path` - The billing operation identifier for the option.
62+
- `min_value` - The minimum value for the option.
63+
- `current_value` - The current value set for the option.
64+
- `max_value` - The maximum allowed value for the option.
65+
- `quota_warning` - Warning information regarding quota limitations for the option.
66+
- `price` - The price of the option.
6767
- `price` - The offer price.
6868

internal/services/webhosting/offer_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func dataSourceOfferRead(ctx context.Context, d *schema.ResourceData, m interfac
199199
cp, _ := d.Get("control_panel").(string)
200200
if offer.ID == d.Get("offer_id") || (offer.Name == d.Get("name") && (cp == "" || strings.EqualFold(offer.ControlPanelName, cp))) {
201201
filteredOffer = offer
202-
202+
203203
break
204204
}
205205
}

internal/services/webhosting/webhosting.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func resourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m inter
238238
_ = d.Set("platform_number", webhostingResponse.Platform.Number)
239239
_ = d.Set("options", flattenHostingOptions(webhostingResponse.Offer.Options))
240240
_ = d.Set("offer_name", webhostingResponse.Offer.Name)
241-
_ = d.Set("dns_status", webhostingResponse.DNSStatus.String()) // nolint:staticcheck
241+
_ = d.Set("dns_status", webhostingResponse.DNSStatus.String()) //nolint:staticcheck
242242
_ = d.Set("cpanel_urls", flattenHostingCpanelUrls(webhostingResponse.Platform.ControlPanel.URLs))
243243
_ = d.Set("username", webhostingResponse.User.Username)
244244
_ = d.Set("region", string(region))
@@ -273,7 +273,6 @@ func resourceWebhostingUpdate(ctx context.Context, d *schema.ResourceData, m int
273273

274274
if d.HasChange("offer_id") {
275275
_, offerID, err := regional.ParseID(d.Get("offer_id").(string))
276-
277276
if err != nil {
278277
return diag.FromErr(err)
279278
}

0 commit comments

Comments
 (0)