"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/drivers/ibm/ibm_storage/ds8k_restclient.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Train" series (latest release).

ds8k_restclient.py  (cinder-15.0.1):ds8k_restclient.py  (cinder-15.1.0)
skipping to change at line 198 skipping to change at line 198
raise APIException('The host parameter must not be empty.') raise APIException('The host parameter must not be empty.')
# the api incorrectly transforms an empty password to a missing # the api incorrectly transforms an empty password to a missing
# password paramter, so we have to catch it here # password paramter, so we have to catch it here
if not user or not passw: if not user or not passw:
raise APIAuthenticationException( raise APIAuthenticationException(
_('The username and the password parameters must ' _('The username and the password parameters must '
'not be empty.')) 'not be empty.'))
self.token = '' self.token = ''
self.host = host self.host = host
self.port = '8452' self.port = '8452'
self.user = user self.user = user if isinstance(user, str) else user.decode()
self.passw = passw self.passw = passw if isinstance(passw, str) else passw.decode()
self.connector = connector_obj or DefaultRESTConnector(verify) self.connector = connector_obj or DefaultRESTConnector(verify)
self.connect() self.connect()
def connect(self): def connect(self):
# one retry when connecting, 60s should be enough to get the token, # one retry when connecting, 60s should be enough to get the token,
# usually it is within 30s. # usually it is within 30s.
try: try:
response = self.send( response = self.send(
'POST', '/tokens', 'POST', '/tokens',
{'username': self.user, 'password': self.passw}, {'username': self.user, 'password': self.passw},
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)