Skip to content

Commit ff7725f

Browse files
committedJul 1, 2024
fix linting
Signed-off-by: Will Arroyo <warroyo7199008@gmail.com>
1 parent 0434c5c commit ff7725f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎internal/authctx/client.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
const (
1616
ServerEndpointEnvVar = "TMC_ENDPOINT"
17-
ProjectIdEnvVar = "PROJECT_ID"
17+
ProjectIDEnvVar = "PROJECT_ID"
1818

1919
// TMC SaaS env variables.
2020
VMWCloudEndpointEnvVar = "VMW_CLOUD_ENDPOINT"
@@ -38,7 +38,7 @@ const (
3838
type TanzuContext struct {
3939
SelfManaged bool
4040
ServerEndpoint string
41-
ProjectId string
41+
ProjectID string
4242
SMUsername string
4343
Token string // selfmanaged password is stored here
4444
VMWCloudEndPoint string // selfmanaged odic issuer is stored here
@@ -77,8 +77,8 @@ func setup(cfg *TanzuContext) (err error) {
7777
cfg.TMCConnection.WithHost(cfg.ServerEndpoint)
7878
cfg.TMCConnection.Headers.Set("Host", cfg.ServerEndpoint)
7979

80-
if cfg.ProjectId != "" {
81-
cfg.TMCConnection.Headers.Set("X-Project-Id", cfg.ProjectId)
80+
if cfg.ProjectID != "" {
81+
cfg.TMCConnection.Headers.Set("X-Project-Id", cfg.ProjectID)
8282
}
8383

8484
if cfg.IsSelfManaged() {

‎internal/authctx/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package authctx
77

88
const (
99
endpoint = "endpoint"
10-
projectId = "project_id"
10+
projectID = "project_id"
1111
vmwCloudEndpoint = "vmw_cloud_endpoint"
1212
vmwCloudAPIToken = "vmw_cloud_api_token"
1313
defaultCSPEndpoint = "console.cloud.vmware.com"

‎internal/authctx/helper.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func ProviderAuthSchema() map[string]*schema.Schema {
2525
Required: true,
2626
DefaultFunc: schema.EnvDefaultFunc(ServerEndpointEnvVar, ""),
2727
},
28-
projectId: {
28+
projectID: {
2929
Type: schema.TypeString,
3030
Required: true,
31-
DefaultFunc: schema.EnvDefaultFunc(ProjectIdEnvVar, ""),
31+
DefaultFunc: schema.EnvDefaultFunc(ProjectIDEnvVar, ""),
3232
},
3333
vmwCloudEndpoint: {
3434
Type: schema.TypeString,
@@ -136,7 +136,7 @@ func ProviderConfigureContext(_ context.Context, d *schema.ResourceData) (interf
136136
_, smAuth := d.GetOk(selfManaged)
137137

138138
config.ServerEndpoint, _ = d.Get(endpoint).(string)
139-
config.ProjectId, _ = d.Get(projectId).(string)
139+
config.ProjectID, _ = d.Get(projectID).(string)
140140
config.VMWCloudEndPoint, _ = d.Get(vmwCloudEndpoint).(string)
141141
config.Token, _ = d.Get(vmwCloudAPIToken).(string)
142142

0 commit comments

Comments
 (0)