aboutsummaryrefslogtreecommitdiff
path: root/rpkid/tests/yamlconf.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-10-26 15:15:48 +0000
committerRob Austein <sra@hactrn.net>2012-10-26 15:15:48 +0000
commit0382c2893986cbe187f8435bccd8e1ba6e4b76fc (patch)
treeacebbea6b9788832170a7d1b1e68f11a26d428dc /rpkid/tests/yamlconf.py
parentc0bf5482815e73d65490b8fc60753f18f233ee11 (diff)
Teach MySQLdb converter interface about rpki.sundial.datetime.
svn path=/branches/tk274/; revision=4794
Diffstat (limited to 'rpkid/tests/yamlconf.py')
-rw-r--r--rpkid/tests/yamlconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/tests/yamlconf.py b/rpkid/tests/yamlconf.py
index deb7890f..f9f69ba1 100644
--- a/rpkid/tests/yamlconf.py
+++ b/rpkid/tests/yamlconf.py
@@ -189,7 +189,7 @@ class allocation(object):
self.kids = [allocation(k, db, self) for k in y.get("kids", ())]
valid_until = None
if "valid_until" in y:
- valid_until = rpki.sundial.datetime.fromdatetime(y.get("valid_until"))
+ valid_until = rpki.sundial.datetime.from_datetime(y.get("valid_until"))
if valid_until is None and "valid_for" in y:
valid_until = rpki.sundial.now() + rpki.sundial.timedelta.parse(y["valid_for"])
self.base = rpki.resource_set.resource_bag(