Correction in log massage format syntax

Dictionary key used wrongly as '%(key)' instead of '%(key)s'
while formatting log message.

Change-Id: I2e31bfdac1021ee00bb001283c4f4ea9c273bc4c
Closes-bug: #1619584
This commit is contained in:
stack
2016-09-02 03:35:25 -07:00
parent 29e00a3c63
commit 2da1bdd637
+2 -2
View File
@@ -593,7 +593,7 @@ class HPE3PARCommon(object):
volume_update['status'] = 'deleted'
except Exception as ex:
LOG.error(_LE("There was an error deleting volume %(id)s: "
"%(error)."),
"%(error)s."),
{'id': volume.id,
'error': six.text_type(ex)})
volume_update['status'] = 'error'
@@ -693,7 +693,7 @@ class HPE3PARCommon(object):
snapshot_update['status'] = fields.SnapshotStatus.ERROR
except Exception as ex:
LOG.error(_LE("There was an error deleting snapshot %(id)s: "
"%(error)."),
"%(error)s."),
{'id': snapshot['id'],
'error': six.text_type(ex)})
snapshot_update['status'] = fields.SnapshotStatus.ERROR