diff --git a/src/python/pants/backend/helm/util_rules/yaml_utils.py b/src/python/pants/backend/helm/util_rules/yaml_utils.py index daa6dcb295eb..6206f9ee6229 100644 --- a/src/python/pants/backend/helm/util_rules/yaml_utils.py +++ b/src/python/pants/backend/helm/util_rules/yaml_utils.py @@ -43,7 +43,7 @@ def parent(self) -> YamlPath | None: """Returns the path to the parent element unless this path is already the root.""" if not self.is_root: - return YamlPath(self._elements[:-1]) + return YamlPath(self._elements[:-1], absolute=self.absolute) return None @property