Skip to content

Fix --relatives bug to generate distinct org_ids per relative#172

Open
hyp3rion31gr3y wants to merge 1 commit into
mainfrom
fix-relatives-orgid-generation
Open

Fix --relatives bug to generate distinct org_ids per relative#172
hyp3rion31gr3y wants to merge 1 commit into
mainfrom
fix-relatives-orgid-generation

Conversation

@hyp3rion31gr3y

Copy link
Copy Markdown
Contributor

The _get_relatives() method was incorrectly creating the same org_id for all relatives by calling self._get_account() once outside the loop and reusing the value. This caused all hosts to be associated with the same organization regardless of the --relatives parameter value.

Fixed by moving self._get_account() calls inside the list comprehension so each relative gets a unique org_id, enabling proper multi-tenant performance testing scenarios.

The _get_relatives() method was incorrectly creating the same org_id
for all relatives by calling self._get_account() once outside the loop
and reusing the value. This caused all hosts to be associated with the
same organization regardless of the --relatives parameter value.

Fixed by moving self._get_account() calls inside the list comprehension
so each relative gets a unique org_id, enabling proper multi-tenant
performance testing scenarios.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
{
"account": common_acc_orgid,
"orgid": common_acc_orgid,
"account": self._get_account(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This way "account" and "orgid" will be different. I do not see a problem with current code.

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.

2 participants