Skip to content

Commit

Permalink
Fix parent property on YamlPath class
Browse files Browse the repository at this point in the history
  • Loading branch information
alonsodomin committed Jul 15, 2022
1 parent 5c3c9d9 commit ce9d2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/backend/helm/util_rules/yaml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce9d2d8

Please sign in to comment.