Plugins: Allow None types in the configuration tree as values

This commit is contained in:
Mike Auty
2020-10-03 22:02:40 +01:00
committed by ikelos
parent b17a9e1977
commit 7e63ed4815
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class PluginInterface(interfaces.configuration.ConfigurableInterface,
raise exceptions.PluginRequirementException("The plugin configuration failed to validate")
# Populate any optional defaults
for requirement in self.get_requirements():
if requirement.name not in self.config and requirement.default is not None:
if requirement.name not in self.config:
self.config[requirement.name] = requirement.default
self._file_consumer = None # type: Optional[FileConsumerInterface]