Skip to content

Commit

Permalink
Merge pull request #27 from cthit/additions_config
Browse files Browse the repository at this point in the history
Get additions file from config
  • Loading branch information
Oscariremma authored Mar 25, 2024
2 parents 803fd92 + c90e6cd commit 659fbe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions example.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
apiKey = "key"
url = "http://localhost:8081"

[additions]
file = "additions.json"

[ldap]
url = "ldap.mydomain.ex:636"
servername = "mydomain.ex"
Expand Down
2 changes: 1 addition & 1 deletion internal/app/web/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func getChangeSuggestions(fromJson string, toJson string) (actions.UserActions,
consumerUsers = collectUsers(consumer)

// Get and process additions
providerGroups, providerUsers = pkg.AddAdditions(providerGroups, providerUsers, "additions.json")
providerGroups, providerUsers = pkg.AddAdditions(providerGroups, providerUsers, viper.GetString("additions.file"))

// Check for and handle duplicates
providerUsers, providerGroups = duplicates.RemoveDuplicates(providerUsers, providerGroups)
Expand Down

0 comments on commit 659fbe7

Please sign in to comment.