aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/glue.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2011-03-30 23:44:07 +0000
committerMichael Elkins <melkins@tislabs.com>2011-03-30 23:44:07 +0000
commitc96008b0960334d6465cc12f2057831e5720d809 (patch)
tree80cfed3905785b12d3fe699e9958f5298355a801 /rpkid/rpki/gui/app/glue.py
parentce8caea1afe5ce7fad6b91df443fcf1f6c24308b (diff)
pass a log file object to glue.list_received_resources
svn path=/rpkid/rpki/gui/app/glue.py; revision=3754
Diffstat (limited to 'rpkid/rpki/gui/app/glue.py')
-rw-r--r--rpkid/rpki/gui/app/glue.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/rpkid/rpki/gui/app/glue.py b/rpkid/rpki/gui/app/glue.py
index 9245fa71..7164e829 100644
--- a/rpkid/rpki/gui/app/glue.py
+++ b/rpkid/rpki/gui/app/glue.py
@@ -188,10 +188,9 @@ def configure_resources(log, handle):
call_rpkid = build_rpkid_caller(cfg)
call_rpkid(rpki.left_right.self_elt.make_pdu(action='set', self_handle=handle.handle, run_now=True))
-def list_received_resources(conf):
- """
- Query rpkid for this resource handle's children and received resources.
- """
+def list_received_resources(log, conf):
+ "Query rpkid for this resource handle's children and received resources."
+
# if this handle is hosted, get the cfg for the host
rpki_conf = conf.host if conf.host else conf
cfg = rpki.config.parser(confpath(rpki_conf.handle, 'rpki.conf'), 'myrpki')
@@ -224,6 +223,8 @@ def list_received_resources(conf):
not_before = datetime.strptime(pdu.notBefore, "%Y-%m-%dT%H:%M:%SZ")
not_after = datetime.strptime(pdu.notAfter, "%Y-%m-%dT%H:%M:%SZ")
+ #print >>log, 'uri: %s, not before: %s, not after: %s' % (pdu.uri, not_before, not_after)
+
# have we seen this resource cert before?
cert_set = parent.resources.filter(uri=pdu.uri)
if cert_set.count() == 0: