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,