diff options
| author | J08nY | 2017-08-02 19:29:34 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-02 19:29:34 +0200 |
| commit | 2540f2ef0595975be4dfbcaf19f692d69cf91042 (patch) | |
| tree | acb3e2e54586ab835b2124cd1dfda1e8968268b1 /src | |
| parent | 7075b5c47012e57455d6fc610f064b8d690b44cb (diff) | |
| download | mailman-pgp-2540f2ef0595975be4dfbcaf19f692d69cf91042.tar.gz mailman-pgp-2540f2ef0595975be4dfbcaf19f692d69cf91042.tar.zst mailman-pgp-2540f2ef0595975be4dfbcaf19f692d69cf91042.zip | |
Diffstat (limited to 'src')
| -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: |
