summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Abidi <max_abidi@yahoo.com>2016-03-22 16:20:01 -0700
committerMax Abidi <max_abidi@yahoo.com>2016-03-22 16:20:01 -0700
commit459f68f38356a3e74ebc2447bbc1685178027681 (patch)
treeb027eace2a7dddfd6666a009bd9969b240527268
parent5dcaa9009fb77fdf93c1ce4cb8858b982771fcd3 (diff)
downloadpython-barbicanclient-459f68f38356a3e74ebc2447bbc1685178027681.tar.gz
Fixed barbican client order list
When using barbican client to list asymmetric order type with passphrase, the response meta dictionary has "passphrase" key. Update client to also use this key, instead of pass_phrase. Change-Id: Iecd129a61eb02d0de59b4a11b83200a8a4269a6c Closes-Bug: #1560699
-rw-r--r--barbicanclient/orders.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/barbicanclient/orders.py b/barbicanclient/orders.py
index 8267005..91d4e34 100644
--- a/barbicanclient/orders.py
+++ b/barbicanclient/orders.py
@@ -296,7 +296,7 @@ class AsymmetricOrder(Order, AsymmetricOrderFormatter):
_type = 'asymmetric'
def __init__(self, api, name=None, algorithm=None, bit_length=None,
- mode=None, pass_phrase=None, expiration=None,
+ mode=None, passphrase=None, expiration=None,
payload_content_type=None, status=None, created=None,
updated=None, order_ref=None, container_ref=None,
error_status_code=None, error_reason=None, sub_status=None,
@@ -311,8 +311,8 @@ class AsymmetricOrder(Order, AsymmetricOrderFormatter):
error_reason=error_reason, sub_status=sub_status,
sub_status_message=sub_status_message, creator_id=creator_id)
self._container_ref = container_ref
- if pass_phrase:
- self._meta['pass_phrase'] = pass_phrase
+ if passphrase:
+ self._meta['pass_phrase'] = passphrase
@property
def container_ref(self):
@@ -471,7 +471,7 @@ class OrderManager(base.BaseEntityManager):
:raises barbicanclient.exceptions.HTTPServerError: 5xx Responses
"""
return AsymmetricOrder(api=self._api, name=name, algorithm=algorithm,
- bit_length=bit_length, pass_phrase=pass_phrase,
+ bit_length=bit_length, passphrase=pass_phrase,
payload_content_type=payload_content_type,
expiration=expiration)