Skip to content
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

Fix load test failures #682

Merged
merged 4 commits into from
Jun 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion load_tests/load_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def parse_json_template(template, dict):
for key in dict:
if(key[0] == '$'):
data = data.replace(key, dict[key])
elif(key == OUTPUT_PLUGIN):
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

we mean to make this change??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

from slack:

this one is safe
previously it would relpace the vars if the key was for the. current output plugin
now it just iterates overall of them

it does a find and replace

so if the string isn't in our template, it own't replace it
this old logic was unneeded and wrong

for sub_key in dict[key]:
data = data.replace(sub_key, dict[key][sub_key])
return data
Expand Down