summaryrefslogtreecommitdiff
path: root/kvmd/yamlconf
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/yamlconf')
-rw-r--r--kvmd/yamlconf/loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/yamlconf/loader.py b/kvmd/yamlconf/loader.py
index 2acff93f..5050c2e3 100644
--- a/kvmd/yamlconf/loader.py
+++ b/kvmd/yamlconf/loader.py
@@ -46,8 +46,8 @@ class _YamlLoader(yaml.SafeLoader):
super().__init__(yaml_file)
self.__root = os.path.dirname(yaml_file.name)
- def include(self, node: yaml.nodes.Node) -> Any:
- path = os.path.join(self.__root, self.construct_scalar(node))
+ def include(self, node: yaml.nodes.ScalarNode) -> Any:
+ path = os.path.join(self.__root, str(self.construct_scalar(node)))
return load_yaml_file(path)