diff options
author | whoami-rajat <rajatdhasmana@gmail.com> | 2022-04-19 00:03:18 +0530 |
---|---|---|
committer | whoami-rajat <rajatdhasmana@gmail.com> | 2022-04-28 10:31:54 +0530 |
commit | 3ee399a1e35fbf9067f0548b69bc19ca48b8de5f (patch) | |
tree | c188d0107f1b86f128cc32fb5ace441e508089cb /glance_store/common | |
parent | 77919e15d281e908de7b687e2af927b59d3dc8a8 (diff) | |
download | glance_store-3ee399a1e35fbf9067f0548b69bc19ca48b8de5f.tar.gz |
Cinder: Correct exception logging during attach
There is a syntax error in the exception logging when attaching a
volume fails in attachment state manager. This patch corrects it
and adds a test to guard against similar changes in future.
Closes-Bug: #1970698
Change-Id: I43c407046a49bb37631113e2ea65d05450f9365d
Diffstat (limited to 'glance_store/common')
-rw-r--r-- | glance_store/common/attachment_state_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glance_store/common/attachment_state_manager.py b/glance_store/common/attachment_state_manager.py index b069730..984fcb8 100644 --- a/glance_store/common/attachment_state_manager.py +++ b/glance_store/common/attachment_state_manager.py @@ -190,8 +190,8 @@ class _AttachmentState(object): attachment = self.volume_api.attachment_create( client, volume_id, mode=mode) except Exception: - LOG.exception(_LE('Error attaching volume %(volume_id)s', - {'volume_id': volume_id})) + LOG.exception(_LE('Error attaching volume %(volume_id)s'), + {'volume_id': volume_id}) del self.volumes[volume_id] raise |