From 94828174e0a4075ca57cb2f2e8a2bdfddf38a01e Mon Sep 17 00:00:00 2001 From: noopur Date: Wed, 11 Dec 2024 13:03:39 +0000 Subject: [PATCH] Comment updated Signed-off-by: noopur --- tests/end_to_end/models/model_owner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/end_to_end/models/model_owner.py b/tests/end_to_end/models/model_owner.py index 19bb133d15..f0fc337b66 100644 --- a/tests/end_to_end/models/model_owner.py +++ b/tests/end_to_end/models/model_owner.py @@ -228,8 +228,9 @@ def register_collaborators(self, plan_path, num_collaborators=None): self.num_collaborators = num_collaborators if num_collaborators else self.num_collaborators try: - # Straightforward writing to the yaml file is not recommended here - # As the file might contain spaces and tabs which can cause issues + # Open the file and add the entries from scratch. + # This way even if there is a mismatch with some models having it blank + # and others having values, it will be consistent with open(cols_file, "r", encoding="utf-8") as f: doc = yaml.load(f, Loader=yaml.FullLoader)