From fc226fbb6e4909c7a4c23822c207069992b45524 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 23 Jul 2018 16:49:13 +0100 Subject: [PATCH] fw/execution: Ensure that identifiers are used when retrieving plugins. Make sure that when retrieving plugin information from the plugin cache the name is converted to an identifier first. --- wa/framework/configuration/execution.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wa/framework/configuration/execution.py b/wa/framework/configuration/execution.py index aa8a7b50..8e1bb373 100644 --- a/wa/framework/configuration/execution.py +++ b/wa/framework/configuration/execution.py @@ -18,6 +18,8 @@ from itertools import groupby, chain from future.moves.itertools import zip_longest +from devlib.utils.types import identifier + from wa.framework.configuration.core import (MetaConfiguration, RunConfiguration, JobGenerator, settings) from wa.framework.configuration.parsers import ConfigParser @@ -99,7 +101,7 @@ class ConfigManager(object): self.loaded_config_sources.append(source) def get_plugin(self, name=None, kind=None, *args, **kwargs): - return self.plugin_cache.get_plugin(name, kind, *args, **kwargs) + return self.plugin_cache.get_plugin(identifier(name), kind, *args, **kwargs) def get_instruments(self, target): instruments = []