Merge "Move "read_yaml_file" to common.yaml_loader"
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 5 Jul 2018 08:00:09 +0000 (08:00 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 5 Jul 2018 08:00:09 +0000 (08:00 +0000)
1  2 
yardstick/benchmark/contexts/base.py
yardstick/tests/unit/benchmark/contexts/test_base.py
yardstick/tests/unit/benchmark/contexts/test_node.py

@@@ -79,11 -80,8 +80,11 @@@ class Context(object)
                  raise
  
              self.file_path = os.path.join(YARDSTICK_ROOT_PATH, file_path)
-             cfg = utils.read_yaml_file(self.file_path)
+             cfg = yaml_loader.read_yaml_file(self.file_path)
  
 +        for node in cfg["nodes"]:
 +            node["ctx_type"] = self.__context_type__
 +
          self.nodes.extend(cfg["nodes"])
          self.controllers.extend([node for node in cfg["nodes"]
                                   if node.get("role") == "Controller"])