diff --git a/cli/conf.py b/cli/conf.py index 6427b4b89e..10844f70da 100644 --- a/cli/conf.py +++ b/cli/conf.py @@ -1,9 +1,10 @@ import ConfigParser - -import clg import os import yaml +import clg +import yamlordereddictloader + from cli import exceptions from cli import utils @@ -62,7 +63,8 @@ def _get_specs(cls, module_name, config): """ res = {} for spec_file in cls._get_all_specs(config, subfolder=module_name): - spec = yaml.load(open(spec_file)) + spec = yaml.load(open(spec_file), + Loader=yamlordereddictloader.Loader) utils.dict_merge(res, spec) return res diff --git a/requirements.txt b/requirements.txt index 6d9c751d64..02bbf3ee6c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ PyYAML>=3.11 configure>=0.5 colorlog>=2.6.1 clg>=2.0.0 +yamlordereddictloader>=0.1.1