From a122a76b3d20573ca3082ecfcaa6499e8fbba400 Mon Sep 17 00:00:00 2001 From: Alexey Ovchinnikov Date: Tue, 14 May 2013 17:07:29 +0400 Subject: [PATCH] Fixed do_create() in v2 shell. Previously when creating a volume v2 shell was able to create it but then failed to display volume properties. Instead of that it displayed a non-informative error message. This patch fixes the problem. Change-Id: I1d3f9127ddd793a905527660b64ffe8c28f20f1d --- cinderclient/v2/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index 081fe234a..a502378cc 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -248,7 +248,7 @@ def do_create(cs, args): metadata=volume_metadata) info = dict() - volume = cs.volumes.get(info['id']) + volume = cs.volumes.get(volume.id) info.update(volume._info) info.pop('links')