don't reach through the tahoe-lafs config object

This commit is contained in:
Jean-Paul Calderone
2019-06-27 15:07:45 -04:00
parent d2e16df5cc
commit 6068b6c1b2
3 changed files with 29 additions and 4 deletions

View File

@ -729,12 +729,10 @@ class _Client(node.Node, pollmixin.PollMixin):
"""
Load the configuration for a storage server plugin with the given name.
:return dict: The matching configuration.
:return dict[bytes, bytes]: The matching configuration.
"""
try:
# Need to reach past the Tahoe-LAFS-supplied wrapper around the
# underlying ConfigParser...
config = self.config.config.items(
config = self.config.items(
"storageserver.plugins." + storage_plugin_name,
)
except NoSectionError: