From 2540f2ef0595975be4dfbcaf19f692d69cf91042 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 2 Aug 2017 19:29:34 +0200 Subject: Recognize the KeyChangeModWorkflow in key confirm command. --- src/mailman_pgp/commands/eml_key.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py index d493108..4f62050 100644 --- a/src/mailman_pgp/commands/eml_key.py +++ b/src/mailman_pgp/commands/eml_key.py @@ -36,7 +36,8 @@ from mailman_pgp.pgp.mime import MIMEWrapper from mailman_pgp.pgp.wrapper import PGPWrapper from mailman_pgp.utils.email import get_email from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST, - KeyChangeWorkflow) + KeyChangeWorkflow, + KeyChangeModWorkflow) from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST @@ -168,7 +169,8 @@ def _cmd_confirm(pgp_list, mlist, msg, msgdata, arguments, results): print('Wrong token.', file=results) return ContinueProcessing.no - if pendable.get('type') == KeyChangeWorkflow.pendable_class().PEND_TYPE: + if pendable.get('type') in (KeyChangeWorkflow.pendable_class().PEND_TYPE, + KeyChangeModWorkflow.pendable_class().PEND_TYPE): expecting = CHANGE_CONFIRM_REQUEST.format(pendable.get('fingerprint'), token) else: -- cgit v1.3.1