From b475463834458781505d7d9e3344da40251f48dd Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 16 Jun 2026 10:36:28 -0700 Subject: [PATCH] Fix field names in exception messages (#87079) --- lib/ansible/_internal/_datatag/_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/_internal/_datatag/_tags.py b/lib/ansible/_internal/_datatag/_tags.py index e8e39f28328..a0f0d75d4a2 100644 --- a/lib/ansible/_internal/_datatag/_tags.py +++ b/lib/ansible/_internal/_datatag/_tags.py @@ -64,9 +64,9 @@ class Origin(AnsibleDatatagBase): def _post_validate(self) -> None: if self.path: if not self.path.startswith('/'): - raise RuntimeError('The `src` field must be an absolute path.') + raise RuntimeError('The `path` field must be an absolute path.') elif not self.description: - raise RuntimeError('The `src` or `description` field must be specified.') + raise RuntimeError('The `path` or `description` field must be specified.') def __str__(self) -> str: """Renders the origin in the form of path:line_num:col_num, omitting missing/invalid elements from the right."""