From 46a611c24d2a899b58b9768c5ca05a96475bff1e Mon Sep 17 00:00:00 2001 From: Arash Ghoreyshi Date: Fri, 28 Jun 2013 16:00:31 -0500 Subject: [PATCH] Fixed a bug involving secret expiration dates --- barbicanclient/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/barbicanclient/client.py b/barbicanclient/client.py index f481a4e0..d30993d7 100644 --- a/barbicanclient/client.py +++ b/barbicanclient/client.py @@ -199,8 +199,7 @@ class Connection(object): secret_dict['algorithm'] = algorithm secret_dict['cypher_type'] = cypher_type secret_dict['bit_length'] = bit_length - if expiration is not None: - secret_dict['expiration'] = parse_isotime(expiration) + secret_dict['expiration'] = expiration self._remove_empty_keys(secret_dict) LOG.debug(_("Request body: {0}").format(secret_dict)) hdrs, body = self._perform_http(href=href,