Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding formatting changes #912

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bigip/datasource_bigip_ltm_datagroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func dataSourceBigipLtmDataGroupRead(ctx context.Context, d *schema.ResourceData
log.Printf("[INFO] Retrieving Data Group List %s", name)
dataGroup, err := client.GetInternalDataGroup(name)
if err != nil {
return diag.FromErr(fmt.Errorf("Error retrieving Data Group List %s: %v ", name, err))
return diag.FromErr(fmt.Errorf("error retrieving Data Group List %s: %v ", name, err))
}
if dataGroup == nil {
log.Printf("[DEBUG] Data Group List %s not found, removing from state", name)
Expand All @@ -82,7 +82,7 @@ func dataSourceBigipLtmDataGroupRead(ctx context.Context, d *schema.ResourceData
records = append(records, dgRecord)
}
if err := d.Set("record", records); err != nil {
return diag.FromErr(fmt.Errorf("Error updating records in state for Data Group List %s: %v ", name, err))
return diag.FromErr(fmt.Errorf("error updating records in state for Data Group List %s: %v ", name, err))
}
d.SetId(dataGroup.FullPath)
return nil
Expand Down
2 changes: 1 addition & 1 deletion bigip/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func providerConfigure(d *schema.ResourceData, terraformVersion string) (interfa
}
if !d.Get("validate_certs_disable").(bool) {
if d.Get("trusted_cert_path").(string) == "" {
return nil, diag.FromErr(fmt.Errorf("Valid Trust Certificate path not provided using :%+v ", "trusted_cert_path"))
return nil, diag.FromErr(fmt.Errorf("valid Trust Certificate path not provided using :%+v ", "trusted_cert_path"))
}
config.TrustedCertificate = d.Get("trusted_cert_path").(string)
}
Expand Down
2 changes: 1 addition & 1 deletion bigip/resource_bigip_as3.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func resourceBigipAs3Update(ctx context.Context, d *schema.ResourceData, meta in
log.Printf("[DEBUG] successfulTenants :%+v", successfulTenants)
if err != nil {
if successfulTenants == "" {
return diag.FromErr(fmt.Errorf("Error updating json %s: %v", tenantList, err))
return diag.FromErr(fmt.Errorf("error updating json %s: %v", tenantList, err))
}
_ = d.Set("tenant_list", successfulTenants)
if len(successfulTenants) != len(tenantList) {
Expand Down
3 changes: 1 addition & 2 deletions bigip/resource_bigip_ltm_profile_ssl_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ func resourceBigipLtmProfileClientSsl() *schema.Resource {
"cipher_group": {
Type: schema.TypeString,
Optional: true,
Computed: true,
// Default: "none",
Computed: true,
Description: "Cipher group for the ssl client profile",
ConflictsWith: []string{"ciphers"},
},
Expand Down
1 change: 1 addition & 0 deletions bigip/resource_bigip_ltm_profile_ssl_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package bigip
import (
"fmt"
"testing"

bigip "github.com/f5devcentral/go-bigip"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down