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
This commit is contained in:
Alexey Ovchinnikov
2013-05-14 17:07:29 +04:00
parent 2ed5cdcb5f
commit a122a76b3d

View File

@@ -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')