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:
@@ -248,7 +248,7 @@ def do_create(cs, args):
|
|||||||
metadata=volume_metadata)
|
metadata=volume_metadata)
|
||||||
|
|
||||||
info = dict()
|
info = dict()
|
||||||
volume = cs.volumes.get(info['id'])
|
volume = cs.volumes.get(volume.id)
|
||||||
info.update(volume._info)
|
info.update(volume._info)
|
||||||
|
|
||||||
info.pop('links')
|
info.pop('links')
|
||||||
|
Reference in New Issue
Block a user