Skip to content

Commit 7645f19

Browse files
committed
fix(crowdStrike): fixed configuration parameter names to maintain compatibility.
1 parent a022f65 commit 7645f19

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

plugins/crowdStrike/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ func getCrowdStrikeProcessor(group *config.ModuleGroup) CrowdStrikeProcessor {
109109

110110
for _, cnf := range group.ModuleGroupConfigurations {
111111
switch cnf.ConfKey {
112-
case "client_id":
112+
case "crowdstrike_client_id":
113113
processor.ClientID = cnf.ConfValue
114-
case "client_secret":
114+
case "crowdstrike_client_secret":
115115
processor.ClientSecret = cnf.ConfValue
116-
case "cloud":
116+
case "crowdstrike_cloud_region_url":
117117
processor.Cloud = cnf.ConfValue
118-
case "app_name":
118+
case "crowdstrike_app_name":
119119
processor.AppName = cnf.ConfValue
120120
}
121121
}

plugins/modules-config/validations/crowdstrike.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ func ValidateCrowdstrikeConfig(config *config.ModuleGroup) error {
1919

2020
for _, cnf := range config.ModuleGroupConfigurations {
2121
switch cnf.ConfKey {
22-
case "client_id":
22+
case "crowdstrike_client_id":
2323
clientID = cnf.ConfValue
24-
case "client_secret":
24+
case "crowdstrike_client_secret":
2525
clientSecret = cnf.ConfValue
26-
case "cloud":
26+
case "crowdstrike_cloud_region_url":
2727
cloud = cnf.ConfValue
28-
case "app_name":
28+
case "crowdstrike_app_name":
2929
appName = cnf.ConfValue
3030
}
3131
}

0 commit comments

Comments
 (0)