From 2fe8e4d2a38fbe7e0280414d88b36d851da6f1a7 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 29 May 2014 09:40:54 -0500 Subject: [PATCH] unpin iso8601 dependency Trim inbound data so the new iso8601 is happy Change-Id: Ia08a1a5ca869cf5ff3c12f669736c2c3053d77eb --- barbican/common/validators.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/barbican/common/validators.py b/barbican/common/validators.py index 1df44a8d0..7a34d2700 100644 --- a/barbican/common/validators.py +++ b/barbican/common/validators.py @@ -192,7 +192,7 @@ class NewSecretValidator(ValidatorBase): expiration_raw = json_data.get('expiration', None) if expiration_raw and expiration_raw.strip(): try: - expiration_tz = timeutils.parse_isotime(expiration_raw) + expiration_tz = timeutils.parse_isotime(expiration_raw.strip()) expiration = timeutils.normalize_time(expiration_tz) except ValueError: LOG.exception("Problem parsing expiration date") diff --git a/requirements.txt b/requirements.txt index c798fff5c..dcfdfeda5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ alembic>=0.4.1 Babel>=1.3 eventlet>=0.13.0 -iso8601==0.1.8 +iso8601>=0.1.9 jsonschema>=1.3.0,!=1.4.0 kombu>=2.4.8 netaddr>=0.7.6