From d5d7eea00987801d7fa4d67cab8f102a7a13ddb8 Mon Sep 17 00:00:00 2001 From: Arash Ghoreyshi Date: Fri, 28 Jun 2013 15:54:48 -0500 Subject: [PATCH] Bump client version to 0.2.0 Make invalid bit length error handling consistent between secrets and orders --- barbicanclient/client.py | 3 +-- barbicanclient/keep.py | 2 -- setup.py | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/barbicanclient/client.py b/barbicanclient/client.py index 2deea3e9..f481a4e0 100644 --- a/barbicanclient/client.py +++ b/barbicanclient/client.py @@ -198,8 +198,7 @@ class Connection(object): secret_dict['name'] = name secret_dict['algorithm'] = algorithm secret_dict['cypher_type'] = cypher_type - if bit_length is not None: - secret_dict['bit_length'] = int(bit_length) + secret_dict['bit_length'] = bit_length if expiration is not None: secret_dict['expiration'] = parse_isotime(expiration) self._remove_empty_keys(secret_dict) diff --git a/barbicanclient/keep.py b/barbicanclient/keep.py index 3704e5f3..fa8c2430 100644 --- a/barbicanclient/keep.py +++ b/barbicanclient/keep.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import argparse from barbicanclient import client diff --git a/setup.py b/setup.py index a47308ec..4419c79f 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def read(fname): setuptools.setup( name=name, - version="0.1dev", + version="0.2dev", description='Client Library for OpenStack Barbican Key Management API', long_description=read('README.md'), keywords="openstack encryption key-management secret",