summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Liu <liujiong@gohighsec.com>2016-10-15 20:28:49 +0800
committerJeremy Liu <liujiong@gohighsec.com>2016-10-15 20:33:00 +0800
commit594d4fae0b18bee8f1c6a3832641ebe9034a65ca (patch)
treef40bb5dca815c0de7dd664474f19e6f23542cb04
parent628d9fdc11901dedd76629681e16ace30d1d3796 (diff)
downloadpython-barbicanclient-594d4fae0b18bee8f1c6a3832641ebe9034a65ca.tar.gz
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
-rw-r--r--barbicanclient/secrets.py2
1 files changed, 1 insertions, 1 deletions
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