From c979d73bec07ce47d57da243e53a753255a401c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 30 Jan 2017 06:27:12 +0000 Subject: [PATCH] Fix typos for local time conversion --- README.rst | 2 +- certidude/api/lease.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a0a45ea..f107367 100644 --- a/README.rst +++ b/README.rst @@ -114,7 +114,7 @@ System dependencies for Ubuntu 16.04: .. code:: bash apt install -y python python-pip python-dev cython \ - python-cffi python-configparser \ + python-cffi python-configparser python-dateutil \ python-pysqlite2 python-mysql.connector python-ldap \ build-essential libffi-dev libssl-dev libkrb5-dev \ ldap-utils krb5-user \ diff --git a/certidude/api/lease.py b/certidude/api/lease.py index 2a8b815..aaf634f 100644 --- a/certidude/api/lease.py +++ b/certidude/api/lease.py @@ -47,7 +47,7 @@ class StatusFileLeaseResource(object): status = parse_status(fh.read()) for cn, e in status.routing_table.items(): yield { - "acquired": status.client_list[cn].connected_since.replace(tzinfo=localtime) + "acquired": status.client_list[cn].connected_since.replace(tzinfo=localtime), "released": None, "address": e.virtual_address, "identity": "CN=%s" % cn, # BUGBUG