File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -79,28 +79,6 @@ func MergeConfigFiles(
7979 }
8080 }
8181
82- if extraConfig .Integrations .AWS != nil {
83- if config .Integrations .AWS == nil {
84- config .Integrations .AWS = extraConfig .Integrations .AWS
85- } else {
86- config .Integrations .AWS .Enable = extraConfig .Integrations .AWS .Enable
87-
88- config .Integrations .AWS .RoleNameToAssume = extraConfig .Integrations .AWS .RoleNameToAssume
89- config .Integrations .AWS .PrimaryAccountID = extraConfig .Integrations .AWS .PrimaryAccountID
90- config .Integrations .AWS .PrimaryRegion = extraConfig .Integrations .AWS .PrimaryRegion
91-
92- if extraConfig .Integrations .AWS .PrimaryRegion != "" {
93- config .Integrations .AWS .PrimaryRegion = extraConfig .Integrations .AWS .PrimaryRegion
94- }
95- if extraConfig .Integrations .AWS .TargetRegions != nil {
96- config .Integrations .AWS .TargetRegions = extraConfig .Integrations .AWS .TargetRegions
97- }
98- if extraConfig .Integrations .AWS .TargetAccounts != nil {
99- config .Integrations .AWS .TargetAccounts = extraConfig .Integrations .AWS .TargetAccounts
100- }
101- }
102- }
103-
10482 if len (extraConfig .IgnoreDirs ) > 0 {
10583 config .IgnoreDirs = extraConfig .IgnoreDirs
10684 }
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package models
22
33type Integrations struct {
44 Jira * Jira `yaml:"jira,omitempty"`
5- AWS * AWS `yaml:"aws,omitempty"`
65}
76
87type Jira struct {
@@ -32,12 +31,3 @@ type Assignee struct {
3231 Name string `yaml:"name,omitempty"`
3332 ID string `yaml:"id,omitempty"`
3433}
35-
36- type AWS struct {
37- Enable bool `yaml:"enable"`
38- RoleNameToAssume string `yaml:"role_name_to_assume"`
39- PrimaryAccountID string `yaml:"primary_account_id"`
40- PrimaryRegion string `yaml:"primary_region"`
41- TargetRegions * []string `yaml:"target_regions,omitempty"`
42- TargetAccounts * []string `yaml:"target_accounts,omitempty"`
43- }
You can’t perform that action at this time.
0 commit comments