aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/workflows/key_change.py
diff options
context:
space:
mode:
authorJ08nY2017-08-01 01:00:34 +0200
committerJ08nY2017-08-01 01:00:34 +0200
commit8d4fdb5017bdeee344d9908ddc98b51ae3b7c79b (patch)
treea5d61f909810688d32fda0ba10ce422eccbb5be5 /src/mailman_pgp/workflows/key_change.py
parent8c3ac4d693cfa6138a02bf2d58b98ff62fe4f234 (diff)
parent89e7005f70a7feda03f15cbe39bf866a6f5bd059 (diff)
downloadmailman-pgp-8d4fdb5017bdeee344d9908ddc98b51ae3b7c79b.tar.gz
mailman-pgp-8d4fdb5017bdeee344d9908ddc98b51ae3b7c79b.tar.zst
mailman-pgp-8d4fdb5017bdeee344d9908ddc98b51ae3b7c79b.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