aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/workflows/key_change.py
diff options
context:
space:
mode:
authorJ08nY2017-08-01 00:55:11 +0200
committerJ08nY2017-08-01 00:55:11 +0200
commit89e7005f70a7feda03f15cbe39bf866a6f5bd059 (patch)
treea5d61f909810688d32fda0ba10ce422eccbb5be5 /src/mailman_pgp/workflows/key_change.py
parentcce2409e111c4b29bb8739c0699885007e7b81a2 (diff)
downloadmailman-pgp-89e7005f70a7feda03f15cbe39bf866a6f5bd059.tar.gz
mailman-pgp-89e7005f70a7feda03f15cbe39bf866a6f5bd059.tar.zst
mailman-pgp-89e7005f70a7feda03f15cbe39bf866a6f5bd059.zip
Diffstat (limited to 'src/mailman_pgp/workflows/key_change.py')
-rw-r--r--src/mailman_pgp/workflows/key_change.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman_pgp/workflows/key_change.py b/src/mailman_pgp/workflows/key_change.py
index 61acf95..290e504 100644
--- a/src/mailman_pgp/workflows/key_change.py
+++ b/src/mailman_pgp/workflows/key_change.py
@@ -16,7 +16,6 @@
# this program. If not, see <http://www.gnu.org/licenses/>.
""""""
-from lazr.config import as_timedelta
from mailman.email.message import UserNotification
from mailman.interfaces.pending import IPendable, IPendings
from mailman.interfaces.subscriptions import TokenOwner
@@ -95,7 +94,7 @@ class KeyChangeWorkflow(Workflow):
pubkey=str(self.pubkey),
fingerprint=self.pubkey.fingerprint
)
- lifetime = as_timedelta(config.get('misc', 'change_request_lifetime'))
+ lifetime = config.get_value('misc', 'change_request_lifetime')
self.token = pendings.add(pendable, lifetime=lifetime)
self.token_owner = TokenOwner.subscriber