diff options
Diffstat (limited to 'src/mailman_pgp/commands')
| -rw-r--r-- | src/mailman_pgp/commands/eml_key.py | 6 |
1 files changed, 4 insertions, 2 deletions
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: |
