Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Use explicit resource order when assocating agents #2219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

kylecarbs
Copy link
Member

This cleans up agent association code to explicitly map a single
agent to a single resource. This will fix #1884, and unblock
a prospect from beginning a POC.

@kylecarbs kylecarbs requested review from deansheather and f0ssel June 9, 2022 21:26
@kylecarbs kylecarbs self-assigned this Jun 9, 2022
@kylecarbs kylecarbs force-pushed the resource-order branch 2 times, most recently from d94e224 to 1033852 Compare June 9, 2022 21:51
Copy link
Contributor

@f0ssel f0ssel left a comment

Choose a reason for hiding this comment

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

Tests lgtm

This cleans up agent association code to explicitly map a single
agent to a single resource. This will fix #1884, and unblock
a prospect from beginning a POC.
@kylecarbs kylecarbs enabled auto-merge (squash) June 9, 2022 22:35
Comment on lines +54 to +55
var findTerraformResources func(mod *tfjson.StateModule)
findTerraformResources = func(mod *tfjson.StateModule) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var findTerraformResources func(mod *tfjson.StateModule)
findTerraformResources = func(mod *tfjson.StateModule) {
findTerraformResources := func(mod *tfjson.StateModule) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't do that because it calls itself ;p

@kylecarbs kylecarbs merged commit f9290b0 into main Jun 10, 2022
@kylecarbs kylecarbs deleted the resource-order branch June 10, 2022 15:47
kylecarbs added a commit that referenced this pull request Jun 10, 2022
This cleans up agent association code to explicitly map a single
agent to a single resource. This will fix #1884, and unblock
a prospect from beginning a POC.
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