Skip to content

fix: scope env substitution to targeted servers#213

Open
haosenwang1018 wants to merge 2 commits intophilschmid:mainfrom
haosenwang1018:fix/targeted-server-env-substitution
Open

fix: scope env substitution to targeted servers#213
haosenwang1018 wants to merge 2 commits intophilschmid:mainfrom
haosenwang1018:fix/targeted-server-env-substitution

Conversation

@haosenwang1018
Copy link

Summary

  • add serverNames option to loadConfig so callers can limit env substitution to the servers being queried
  • update info and call commands to pass only the target server name, avoiding warnings about unrelated missing env vars
  • keep list and grep substituting all servers since they touch everything

Testing

  • Added test "only substitutes env vars for targeted servers" which verifies that env vars for non-targeted servers are left unsubstituted while targeted servers are processed normally.

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.

1 participant