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 11, 2022
1 parent 8701314 commit e8c71aa
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 e8c71aa

Please sign in to comment.