Skip to content
Snippets Groups Projects

Make DummyRedeemer require a public key

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
196 """
197 Get the issuer public key a ``DummyRedeemer`` has been configured with.
198
199 :param unicode plugin_name: The plugin name to use to choose a
200 configuration section.
201
202 :param _Config node_config: See ``from_configuration``.
203 """
204 section_name = u"storageclient.plugins.{}".format(plugin_name)
205 redeemer_kind = node_config.get_config(
206 section=section_name,
207 option=u"redeemer",
208 )
209 if redeemer_kind != "dummy":
210 raise ValueError(
211 "Cannot read dummy redeemer public key from configuration for {!r} redeemer.".format(
  • I'd write a test for this but turns out there are no callers of this function in the follow-up PR that actually does something useful so I'll just delete the whole thing, instead.

  • Administrator
    Administrator @root started a thread on commit 7ecc086e
  • 192 192
    193 193 TRANSIENT_ERROR = u"something went wrong, who knows what"
  • Created by: hacklschorsch

    Review: Commented

    Nice, nice, very nice

  • Please register or sign in to reply
    Loading