Fixing string formatting bug in log message.

The first named formatting parameter was missing the 's' suffix
this caused python to throw an error.

Change-Id: I0e0c72a2fc19dd02250b1253f5f7ac04f9bac0fc
This commit is contained in:
Matt Smith 2017-01-17 14:00:38 -08:00
parent ee6840c92e
commit 802c5a7854
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ class Store(glance_store.driver.Store):
LOG.error(reason)
raise exceptions.NotFound(reason)
except cinder_exception.ClientException as e:
msg = (_('Failed to get image volume %(volume_id): %(error)s')
msg = (_('Failed to get image volume %(volume_id)s: %(error)s')
% {'volume_id': loc.volume_id, 'error': e})
LOG.error(msg)
raise exceptions.BackendException(msg)