Skip to content

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Apr 4, 2024

This PR updates addTerraformOutputs to use reference instead of value parameter.

It also removes an unnecessary temporal variable (outCtxt).

@mrodm mrodm self-assigned this Apr 4, 2024
@mrodm mrodm requested a review from a team April 4, 2024 18:00
for _, tc := range testCases {

t.Run(tc.testName, func(t *testing.T) {
tc.svcInfo.CustomProperties = make(map[string]interface{})
Copy link
Contributor Author

@mrodm mrodm Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As now it is used as reference in addTerraformOutputs, there is no need to create the map beforehand.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this was indeed cheating the test.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @mrodm

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

for _, tc := range testCases {

t.Run(tc.testName, func(t *testing.T) {
tc.svcInfo.CustomProperties = make(map[string]interface{})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this was indeed cheating the test.

@mrodm mrodm merged commit dbc03cd into elastic:main Apr 5, 2024
@mrodm mrodm deleted the use_reference_terraform_outputs branch April 5, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants