@@ -106,7 +106,7 @@ func ExecuteAtlantisGenerateRepoConfigCmd(cmd *cobra.Command, args []string) err
106
106
}
107
107
108
108
return ExecuteAtlantisGenerateRepoConfigAffectedOnly (
109
- & atmosConfig ,
109
+ atmosConfig ,
110
110
outputPath ,
111
111
configTemplateName ,
112
112
projectTemplateName ,
@@ -122,7 +122,7 @@ func ExecuteAtlantisGenerateRepoConfigCmd(cmd *cobra.Command, args []string) err
122
122
}
123
123
124
124
return ExecuteAtlantisGenerateRepoConfig (
125
- & atmosConfig ,
125
+ atmosConfig ,
126
126
outputPath ,
127
127
configTemplateName ,
128
128
projectTemplateName ,
@@ -133,7 +133,7 @@ func ExecuteAtlantisGenerateRepoConfigCmd(cmd *cobra.Command, args []string) err
133
133
134
134
// ExecuteAtlantisGenerateRepoConfigAffectedOnly generates repository configuration for Atlantis only for the affected components and stacks
135
135
func ExecuteAtlantisGenerateRepoConfigAffectedOnly (
136
- atmosConfig * schema.AtmosConfiguration ,
136
+ atmosConfig schema.AtmosConfiguration ,
137
137
outputPath string ,
138
138
configTemplateName string ,
139
139
projectTemplateName string ,
@@ -155,7 +155,7 @@ func ExecuteAtlantisGenerateRepoConfigAffectedOnly(
155
155
156
156
if repoPath != "" {
157
157
affected , _ , _ , _ , err = ExecuteDescribeAffectedWithTargetRepoPath (
158
- atmosConfig ,
158
+ & atmosConfig ,
159
159
repoPath ,
160
160
verbose ,
161
161
false ,
@@ -167,7 +167,7 @@ func ExecuteAtlantisGenerateRepoConfigAffectedOnly(
167
167
)
168
168
} else if cloneTargetRef {
169
169
affected , _ , _ , _ , err = ExecuteDescribeAffectedWithTargetRefClone (
170
- atmosConfig ,
170
+ & atmosConfig ,
171
171
ref ,
172
172
sha ,
173
173
sshKeyPath ,
@@ -182,7 +182,7 @@ func ExecuteAtlantisGenerateRepoConfigAffectedOnly(
182
182
)
183
183
} else {
184
184
affected , _ , _ , _ , err = ExecuteDescribeAffectedWithTargetRefCheckout (
185
- atmosConfig ,
185
+ & atmosConfig ,
186
186
ref ,
187
187
sha ,
188
188
verbose ,
@@ -229,14 +229,14 @@ func ExecuteAtlantisGenerateRepoConfigAffectedOnly(
229
229
230
230
// ExecuteAtlantisGenerateRepoConfig generates repository configuration for Atlantis
231
231
func ExecuteAtlantisGenerateRepoConfig (
232
- atmosConfig * schema.AtmosConfiguration ,
232
+ atmosConfig schema.AtmosConfiguration ,
233
233
outputPath string ,
234
234
configTemplateNameArg string ,
235
235
projectTemplateNameArg string ,
236
236
stacks []string ,
237
237
components []string ,
238
238
) error {
239
- stacksMap , _ , err := FindStacksMap (* atmosConfig , false )
239
+ stacksMap , _ , err := FindStacksMap (atmosConfig , false )
240
240
if err != nil {
241
241
return err
242
242
}
@@ -356,7 +356,7 @@ func ExecuteAtlantisGenerateRepoConfig(
356
356
context := cfg .GetContextFromVars (varsSection )
357
357
context .Component = strings .Replace (componentName , "/" , "-" , - 1 )
358
358
context .ComponentPath = terraformComponentPath
359
- contextPrefix , err := cfg .GetContextPrefix (stackConfigFileName , context , GetStackNamePattern (* atmosConfig ), stackConfigFileName )
359
+ contextPrefix , err := cfg .GetContextPrefix (stackConfigFileName , context , GetStackNamePattern (atmosConfig ), stackConfigFileName )
360
360
if err != nil {
361
361
return err
362
362
}
@@ -381,7 +381,7 @@ func ExecuteAtlantisGenerateRepoConfig(
381
381
}
382
382
383
383
// Calculate terraform workspace
384
- workspace , err := BuildTerraformWorkspace (* atmosConfig , configAndStacksInfo )
384
+ workspace , err := BuildTerraformWorkspace (atmosConfig , configAndStacksInfo )
385
385
if err != nil {
386
386
return err
387
387
}
@@ -525,7 +525,7 @@ specified in the ` + "`" + `integrations.atlantis.config_templates` + "`" + ` se
525
525
return err
526
526
}
527
527
} else {
528
- err = u .PrintAsYAML (atmosConfig , atlantisYaml )
528
+ err = u .PrintAsYAML (& atmosConfig , atlantisYaml )
529
529
if err != nil {
530
530
return err
531
531
}
0 commit comments