-class ConfigPluginBase(object):
- """Base class for config plugins. Need to implement public interfaces."""
- __metaclass__ = abc.ABCMeta
+class ConfigPluginBase(object, metaclass=abc.ABCMeta):
+ """Base class for config plugins."""
class ConfigPlugin(ConfigPluginBase):
"""No-op config plugin class. Does not change anything."""
def __init__(self, config):
class ConfigPlugin(ConfigPluginBase):
"""No-op config plugin class. Does not change anything."""
def __init__(self, config):
return specs.OpenStackSpec()
def get_run_spec(self, config, openstack_spec):
return specs.OpenStackSpec()
def get_run_spec(self, config, openstack_spec):
- def validate_config(self, config, openstack_spec):
- pass
+ def validate_config(self, cfg, openstack_spec):
+ """Nothing to validate by default."""