Skip to content

Commit

Permalink
fix DefineConfiguration() parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaeta committed Jul 24, 2024
1 parent 9a08833 commit 0973200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/baton-privx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var configurationFields = []field.SchemaField{
oauthClientSecretField,
}

var configuration = field.NewConfiguration(configurationFields)

// validateConfig is run after the configuration is loaded, and should return an error if it isn't valid.
func validateConfig(ctx context.Context, v *viper.Viper) error {
if v.GetString(baseUrlField.FieldName) == "" {
Expand Down
3 changes: 1 addition & 2 deletions cmd/baton-privx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ func main() {
ctx,
"baton-privx",
getConnector,
configurationFields,
nil,
configuration,
)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
Expand Down

0 comments on commit 0973200

Please sign in to comment.