summaryrefslogtreecommitdiff
path: root/kvmd/yamlconf
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-06-08 22:22:28 +0300
committerDevaev Maxim <[email protected]>2021-06-08 22:22:28 +0300
commit240f3e095b063d3fdebb512c87c493b81c0dd9e3 (patch)
treedd2bec36a9aa5852f8209db08717f58738b06e45 /kvmd/yamlconf
parent2724a14eab26030fc0f2c830b12aa613a3b8e8a8 (diff)
lint fix
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)