Also load yaml sample files. cc @jmchilton, is this ok?

This commit is contained in:
E Rasche
2017-08-10 17:53:21 +02:00
parent 1e9c31241c
commit 538ef006f3
+1 -1
View File
@@ -72,7 +72,7 @@ def __load_plugins_from_dicts(plugins_dict, configs, extra_kwds):
def plugin_source_from_path(path):
if path.endswith(".yaml") or path.endswith(".yml"):
if path.endswith(".yaml") or path.endswith(".yml") or path.endswith(".yaml.sample") or path.endswith(".yml.sample"):
return ('dict', __read_yaml(path))
else:
return ('xml', ElementTree.parse( path ).getroot())