From 7cd0a7bdf646b1fe480f48af8a1062325ce3cdc3 Mon Sep 17 00:00:00 2001 From: xiexs Date: Mon, 27 Jun 2016 07:25:18 -0400 Subject: [PATCH] Trivial Fix Fill the omitted value argument for the formatting argument %(vol_id). Change-Id: I8e9aaa95a1e090dc76bee337a7099d94af0d53a7 --- cinder/volume/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 158bbb669b2..46c379c280e 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -1188,7 +1188,8 @@ class API(base.Base): result = volume.conditional_update(value, expected) if not result: - msg = _('Volume %(vol_id)s status must be available to extend.') + msg = _('Volume %(vol_id)s status must be available ' + 'to extend.') % {'vol_id': volume.id} raise exception.InvalidVolume(reason=msg) rollback = True