summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cinder/volume/drivers/prophetstor/dplcommon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cinder/volume/drivers/prophetstor/dplcommon.py b/cinder/volume/drivers/prophetstor/dplcommon.py
index 2cde1c513..4f0713e6e 100644
--- a/cinder/volume/drivers/prophetstor/dplcommon.py
+++ b/cinder/volume/drivers/prophetstor/dplcommon.py
@@ -86,8 +86,8 @@ class DPLCommand(object):
'Accept': 'application/cdmi-container',
'x-cdmi-specification-version': '1.0.2'}
# base64 encode the username and password
- auth = base64.encodestring('%s:%s'
- % (self.username,
+ auth = base64.encodebytes('%s:%s'
+ % (self.username,
self.password)).replace('\n', '')
header['Authorization'] = 'Basic %s' % auth