summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cinderclient/tests/unit/v3/test_shell.py1
-rw-r--r--cinderclient/v3/shell.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/cinderclient/tests/unit/v3/test_shell.py b/cinderclient/tests/unit/v3/test_shell.py
index ee35ddf..f76a484 100644
--- a/cinderclient/tests/unit/v3/test_shell.py
+++ b/cinderclient/tests/unit/v3/test_shell.py
@@ -1165,7 +1165,6 @@ class ShellTest(utils.TestCase):
volume = self.shell.cs.volumes.get('1234')
info = dict()
info.update(volume._info)
- info.pop('links', None)
self.assertEqual(1, poll_method.call_count)
timeout_period = 3600
poll_method.assert_has_calls([mock.call(self.shell.cs.volumes.get,
diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
index fa1cc9c..fcb9e4a 100644
--- a/cinderclient/v3/shell.py
+++ b/cinderclient/v3/shell.py
@@ -675,6 +675,8 @@ def do_create(cs, args):
shell_utils._poll_for_status(
cs.volumes.get, volume.id, info, 'creating', ['available'],
timeout_period, cs.client.global_request_id, cs.messages)
+ volume = cs.volumes.get(volume.id)
+ info.update(volume._info)
utils.print_dict(info)