Skip to content

Commit

Permalink
chore: cleanup not needed config
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarschulte committed May 3, 2024
1 parent a17c079 commit b33c92b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v1.0.9 (next)

- Update dependencies (go 1.22)
- refa config object

## v1.0.8

Expand Down Expand Up @@ -44,4 +45,4 @@

## v1.0.0

- Initial release
- Initial release
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
type Specification struct {
//STEADYBIT_EXTENSION_CREDENTIALS_KEYFILE_PATH
CredentialsKeyfilePath string `json:"credentialsKeyfilePath" required:"false" split_words:"true"`
// STEADYBIT_EXTENSION_CREDENTIALS_KEYFILE_JSON
CredentialsKeyfileJson string `json:"credentialsKeyfileJson" required:"false" split_words:"true"`
//STEADYBIT_EXTENSION_PROJECT_ID
ProjectID string `json:"projectId" required:"false" split_words:"true"`
DiscoveryAttributesExcludesVM []string `json:"discoveryAttributesExcludesVM" required:"false" split_words:"true"`
Expand Down
9 changes: 0 additions & 9 deletions extvm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ func getGcpInstancesClient(ctx context.Context) (*compute.InstancesClient, error
return client, nil
}

if config.Config.CredentialsKeyfileJson != "" {
client, err := compute.NewInstancesRESTClient(ctx, option.WithCredentialsJSON([]byte(config.Config.CredentialsKeyfileJson)))
if err != nil {
log.Error().Err(err).Msgf("Failed to create GCP client via json string.")
return nil, err
}
return client, nil
}

client, err := compute.NewInstancesRESTClient(ctx)
if err != nil {
log.Error().Err(err).Msgf("Failed to create GCP client.")
Expand Down

0 comments on commit b33c92b

Please sign in to comment.