From 594d4fae0b18bee8f1c6a3832641ebe9034a65ca Mon Sep 17 00:00:00 2001 From: Jeremy Liu Date: Sat, 15 Oct 2016 20:28:49 +0800 Subject: Fix bug when uploading secret using unified CLI payload_content_type is already unicode format, no need to convert to unicode. Change-Id: Iff3f32b3f5102c7af6d6b986acdebee9a713f872 Closes-bug: #1627364 --- barbicanclient/secrets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'barbicanclient') diff --git a/barbicanclient/secrets.py b/barbicanclient/secrets.py index a5a1402..220d7f3 100644 --- a/barbicanclient/secrets.py +++ b/barbicanclient/secrets.py @@ -169,7 +169,7 @@ class Secret(SecretFormatter): if self._content_types: return self._content_types elif self._payload_content_type: - return {u'default': six.u(self.payload_content_type)} + return {u'default': self.payload_content_type} return None @property -- cgit v1.2.1