From 61a3d8a132af9906e85214d1f29e8552dd1b9e8e Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 12 Nov 2015 08:32:01 +0000 Subject: Add .__repr__() methods to rpkidb models. Rewrite .publish_world_now() to something a little less whacky. Consolidate fix for singleton URIs in SIA fields. svn path=/branches/tk705/; revision=6170 --- rpki/x509.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpki/x509.py') diff --git a/rpki/x509.py b/rpki/x509.py index 5286fabd..8952de4f 100644 --- a/rpki/x509.py +++ b/rpki/x509.py @@ -776,9 +776,9 @@ class X509(DER_object): Common code to issue an RPKI certificate. """ - if not sia or len(sia) != 4 or not sia[3]: - logger.debug("Oops! _issue() sia: %r", sia) - rpki.log.show_stack(logger) + assert sia and len(sia) == 4 and sia[3] + + sia = tuple((str(s),) if isinstance(s, (str, unicode)) else s for s in sia) now = rpki.sundial.now() ski = subject_key.get_SKI() -- cgit v1.2.3