diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a80214f5..a903105c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -53,6 +53,8 @@ Fixed * Nova server cleanup fails to list resources due to wrong marker. +* Heat template validation when multi users. + [2.3.0] - 2023-08-01 -------------------- diff --git a/rally_openstack/common/validators.py b/rally_openstack/common/validators.py index 77dcda39..ed1f21c2 100644 --- a/rally_openstack/common/validators.py +++ b/rally_openstack/common/validators.py @@ -469,9 +469,10 @@ class ValidateHeatTemplateValidator(validation.Validator): self.fail("No file found by the given path %s" % template_path) with open(template_path, "r") as f: try: + template_file = f.read() for user in context["users"]: clients = user["credential"].clients() - clients.heat().stacks.validate(template=f.read()) + clients.heat().stacks.validate(template=template_file) except Exception as e: self.fail("Heat template validation failed on %(path)s. " "Original error message: %(msg)s." %