diff options
author | Rob Austein <sra@hactrn.net> | 2012-10-26 15:15:48 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-10-26 15:15:48 +0000 |
commit | 0382c2893986cbe187f8435bccd8e1ba6e4b76fc (patch) | |
tree | acebbea6b9788832170a7d1b1e68f11a26d428dc /rpkid/tests/yamlconf.py | |
parent | c0bf5482815e73d65490b8fc60753f18f233ee11 (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.py | 2 |
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( |