Make creating subconfigs simpler from configurables.

This commit is contained in:
Mike Auty
2017-11-13 00:59:01 +00:00
parent 9af49a49a9
commit 769e1226c4
3 changed files with 26 additions and 17 deletions
@@ -56,10 +56,3 @@ class PluginInterface(interfaces_configuration.ConfigurableInterface, validity.V
:return: a TreeGrid object that can then be passed to a Renderer.
:rtype: interfaces.renderers.TreeGrid
"""
def __call__(self, method = 'run', **kwargs):
"""Method to make a plugin callable. It must still have been instantiated with a context and a config_path"""
for k, v in kwargs:
self.config[k] = v
method = getattr(self, method)
return method()