From 9da97cfd2babd2939095fc0596ceee278eef2c6f Mon Sep 17 00:00:00 2001 From: Rajaditya Chauhan Date: Tue, 16 Jun 2026 18:07:46 +0530 Subject: [PATCH] Fix --relatives bug to generate distinct org_ids per relative 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 --- extras/opl/generators/inventory_ingress.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/extras/opl/generators/inventory_ingress.py b/extras/opl/generators/inventory_ingress.py index f275b4e..d596c52 100644 --- a/extras/opl/generators/inventory_ingress.py +++ b/extras/opl/generators/inventory_ingress.py @@ -75,13 +75,10 @@ def _get_relatives(self, relatives): for i in self.per_account_data # because per_account_data is a list not dictionary ] else: - common_acc_orgid = ( - self._get_account() - ) # since hbi has same account and org_id values return [ { - "account": common_acc_orgid, - "orgid": common_acc_orgid, + "account": self._get_account(), + "orgid": self._get_account(), "satellite_id": self._get_uuid(), "satellite_instance_id": self._get_uuid(), }