From 47014971b09f0334e5cc3b414bef31784f88a37d Mon Sep 17 00:00:00 2001 From: Swapnil Kulkarni Date: Wed, 8 Jan 2014 13:24:06 +0530 Subject: [PATCH] Update cinderclient to skip the additional GET during create With change https://review.openstack.org/64945 cinder V2 API now returns volume details. Updated do_create in cinderclient to remove additional GET call. Change-Id: I2a36f2fa865b52f228bad44e0a9c67d49228321e Partial-Bug: #1265893 --- cinderclient/v2/shell.py | 1 - doc/source/index.rst | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index e835486..0182f32 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -296,7 +296,6 @@ def do_create(cs, args): scheduler_hints=hints) info = dict() - volume = cs.volumes.get(volume.id) info.update(volume._info) info.pop('links', None) diff --git a/doc/source/index.rst b/doc/source/index.rst index 4f00787..8475660 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -33,6 +33,7 @@ MASTER ------ * Add support for reset-state on multiple volumes or snapshots at once +.. _1265893: https://bugs.launchpad.net/python-cinderclient/+bug/1265893 .. _1256043: https://bugs.launchpad.net/python-cinderclient/+bug/1256043 .. _1254951: http://bugs.launchpad.net/python-cinderclient/+bug/1254951 .. _1254587: http://bugs.launchpad.net/python-cinderclient/+bug/1254587