manager code

This commit is contained in:
ari committed 2021-12-30 23:16:15 -05:00
1 parent 8adb86b2ec
commit ef5715ea6c
9 files changed
+66 -35

No files matched your search

+3 -3
View File
@@ -9,15 +9,15 @@ class IncludedYaml(NamedTuple):
this data type will represent it.
"""
path: Path # original node path
path_str: str # original node path
@classmethod
def to_yaml(cls, representer: BaseRepresenter, node: "IncludedYaml"):
return representer.represent_scalar("!include", str(node.path.absolute()))
return representer.represent_scalar("!include", node.path_str)
@classmethod
def from_yaml(cls, _constructor, node: Node):
return cls(Path(node.value).absolute())
return cls(node.value)
class SecretValue(NamedTuple):